CN113810817A - Volume control method and device of wireless earphone and wireless earphone - Google Patents
Volume control method and device of wireless earphone and wireless earphone Download PDFInfo
- Publication number
- CN113810817A CN113810817A CN202111117074.XA CN202111117074A CN113810817A CN 113810817 A CN113810817 A CN 113810817A CN 202111117074 A CN202111117074 A CN 202111117074A CN 113810817 A CN113810817 A CN 113810817A
- Authority
- CN
- China
- Prior art keywords
- volume
- distance
- basic
- field
- earplugs
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 210000005069 ears Anatomy 0.000 claims description 26
- 238000004590 computer program Methods 0.000 claims description 15
- 230000006870 function Effects 0.000 claims description 10
- 238000003860 storage Methods 0.000 claims description 5
- 238000009792 diffusion process Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 abstract description 10
- 230000000694 effects Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000009826 distribution Methods 0.000 description 5
- 238000009413 insulation Methods 0.000 description 5
- 230000003247 decreasing effect Effects 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000011521 glass Substances 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 235000019800 disodium phosphate Nutrition 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 239000013598 vector Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/04—Circuits for transducers, loudspeakers or microphones for correcting frequency response
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Computer Networks & Wireless Communication (AREA)
- Headphones And Earphones (AREA)
Abstract
The invention discloses a volume control method and a device of a wireless earphone and the wireless earphone, wherein the volume control method of the wireless earphone comprises the following steps: acquiring the distance between the pronunciation equipment and the two earplugs in real time, wherein the distance is respectively used as a first distance and a second distance; determining real-time volume of the two earplugs according to the first distance and the second distance; and outputting the audio of the pronunciation equipment according to the real-time volume of the two earplugs. The volume of the earphone is determined through the distance between the pronunciation device and the earphone, so that the volume received by a user changes along with the change of the distance.
Description
Technical Field
The invention relates to the technical field of earphones, in particular to a volume control method and device of a wireless earphone and the wireless earphone.
Background
The Bluetooth earphone applies the Bluetooth technology to a hands-free earphone, so that a user can avoid the influence of an earphone wire on communication. The combination of the Bluetooth headset and the virtual reality glasses enables a user to more conveniently acquire sound signals from the Bluetooth headset when watching a virtual reality scene, and greatly improves the user experience of the virtual reality glasses.
However, in both the bluetooth headset of the virtual reality glasses and the general bluetooth headset, the influence of the distance between the sound generating device (hereinafter, referred to as a sound source) connected to the bluetooth headset and the bluetooth headset (or the head of the user) on the sound is not considered, and thus the user cannot feel the difference in the distance of the sound source.
In addition, in real environment, if the distances from the sound source to the two ears are different, the sizes of the sounds recognized by the two ears are different, that is, the human body (particularly, the head of the human body) has a sound insulation effect. However, in the existing bluetooth headset, the volume of the two earplugs is the same, and the effect is not in accordance with the actual situation, so that the user experience of the bluetooth headset is not real enough.
Disclosure of Invention
In view of the foregoing, the present invention aims to provide a volume control method and apparatus for a wireless headset, and accordingly provides a computer-readable storage medium, by which the volume of the wireless headset can be changed along with the change of the distance between the sound generating device and the headset, so that the user experience is more realistic.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a volume control method for a wireless headset, including:
acquiring the distance between the pronunciation equipment and the two earplugs in real time, wherein the distance is respectively used as a first distance and a second distance;
determining real-time volume of the two earplugs according to the first distance and the second distance;
and outputting the audio of the pronunciation equipment according to the real-time volume of the two earplugs.
In one possible implementation manner, determining the real-time volume of the two earpieces according to the first distance and the second distance specifically includes:
determining the basic volume of the two earplugs according to the first distance and the second distance, wherein the basic volume is the volume corresponding to the basic gear;
identifying a current volume gear of the wireless headset;
and adjusting the basic volume according to the current volume gear to obtain the target volume of the two earplugs corresponding to the current volume gear, wherein the target volume is used as the real-time volume of the two earplugs.
In one possible implementation manner, determining the base volume of the two earpieces according to the first distance and the second distance specifically includes:
acquiring a smaller value of the first distance and the second distance as a basic distance;
determining sound field levels of the pronunciation equipment corresponding to the basic distance, wherein the sound field levels comprise a near field, a free field and a far field;
a first base volume of the first ear plug and a second base volume of the second ear plug are obtained in accordance with the sound field level.
In one possible implementation, the first base volume and the second base volume are the same.
In one possible implementation manner, determining the second basic volume specifically includes:
judging whether the sound field level is a far field;
if not, calculating the difference between the first distance and the second distance as a first difference;
a second basic volume is calculated from the first coefficient, the absolute value of the first difference, and the first basic volume.
In one possible implementation, if the sound field level is a far field, the first base volume and the second base volume are both volumes corresponding to a radius of the free field.
In one possible implementation, if the sound field level is a far field, the first alarm information is output.
In one possible implementation, if the sound field level is a near field, the first base volume is a volume corresponding to a radius of the near field.
In one possible implementation manner, if the sound field level is a free field, acquiring the first basic volume includes the following steps:
calculating a difference between the base distance and the radius of the near field as a second difference;
calculating a product of the second coefficient and the second difference as a second product;
the sum of the volumes of the second product corresponding to the radius of the near field is taken as the first base volume.
In one possible implementation manner, the obtaining the first coefficient includes the following steps:
placing two earplugs in a free field of the sound production device, wherein the two earplugs are positioned on the same diffusion wire of the sound production device, and the distance between the two earplugs is the distance between two human ears;
collecting field strengths at the two earplugs as a first field strength and a second field strength, the first field strength being greater than the second field strength;
calculating the difference between the second field strength and the first field strength as a third difference;
the ratio of the third difference to the distance between the two human ears is calculated as the first coefficient.
In one possible implementation manner, the obtaining of the second coefficient includes the following steps;
calculating a difference of field strengths corresponding to the radius of the near field and the radius of the free field as a fourth difference in the full anechoic room environment;
calculating a difference between the radius of the free field and the radius of the near field as a fifth difference;
a ratio between the fourth difference and the fifth difference is calculated as the second coefficient.
In one possible implementation manner, the method further includes:
determining whether a distance difference between the two earplugs and the sound-producing device is greater than a distance threshold before determining real-time volume of the two earplugs;
if yes, second alarm information is sent out.
In one possible implementation, the second alarm message is issued by the earplugs corresponding to the larger distance between the two earplugs and the sound-emitting device. In one possible implementation manner, adjusting the basic volume according to the current volume gear specifically includes:
calculating the variable quantity between the current volume gear and the basic gear;
and respectively adjusting the basic volume of the two earplugs according to the variable quantity to obtain the target volume of the two earplugs.
In a second aspect, the invention provides a volume control device of a wireless headset, which is characterized by comprising a distance acquisition module, a volume determination module and an output module;
the distance acquisition module is used for acquiring the distance between the pronunciation equipment and the two earplugs in real time as a first distance and a second distance respectively;
the volume determining module is used for determining the real-time volume of the two earplugs according to the first distance and the second distance;
the output module is used for outputting the audio frequency of the pronunciation equipment according to the real-time volume of the two earplugs.
In one possible implementation manner, the volume determining module comprises a basic volume determining module, a gear identifying module and an adjusting module;
the basic volume determining module is used for determining basic volumes of the two earplugs according to the first distance and the second distance, and the basic volumes are the volumes corresponding to basic gears;
the gear identification module is used for identifying the current volume gear of the wireless earphone;
the adjusting module is used for adjusting the basic volume according to the current volume gear, obtaining the target volume of the two earplugs corresponding to the current volume gear, and using the target volume as the real-time volume of the two earplugs.
In one possible implementation manner, the basic volume determining module includes a basic distance obtaining module, a sound field level determining module, and a basic volume obtaining module;
the basic distance obtaining module is used for obtaining a smaller value of the first distance and the second distance as a basic distance;
the sound field level determining module is used for determining the sound field level of the pronunciation equipment corresponding to the basic distance, wherein the sound field level comprises a near field, a free field and a far field;
the basic volume obtaining module is used for obtaining a first basic volume of the first earplug and a second basic volume of the second earplug according to the sound field level.
In one possible implementation manner, the basic volume obtaining module includes a judging module, a difference calculating module and a second basic volume determining module;
the judging module is used for judging whether the sound field level is a far field;
the difference value calculating module is used for calculating the difference between the first distance and the second distance as a first difference;
the second basic volume determining module is used for calculating a second basic volume according to the first coefficient, the first difference and the first basic volume if the sound field level is a far field.
In one possible implementation manner, the second basic volume determining module is further configured to use a volume corresponding to a radius of a free field as the second basic volume if the sound field level is the far field.
In a third aspect, the present invention provides a wireless headset comprising:
one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the wireless headset, cause the wireless headset to perform the above-described method of volume control for a wireless headset.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored therein a computer program, which when run on a computer, causes the computer to execute the above-described volume control method of a wireless headset.
The invention is characterized in that the sound field level of the earphone is determined by the distance between the sound-producing device (as a sound source) and the earphone, and the volume of the earphone is determined according to the sound field level, so that the volume received by a user is changed along with the change of the distance between the earphone and the sound-producing device. In addition, the sound intensity level determines the volume of a specific gear on the earphone, and the method gains or attenuates the basic volume according to the target gear of the earphone to obtain the volume of the target gear, so that the playing volume of the wireless earphone is correspondingly changed along with the distance of a sound source and the requirements of a user. In addition, the volume difference between the two earphones is adjusted by utilizing the distance difference between the two earplugs and the sound generating device, so that the two ears of the user obtain different volumes, and the volume change amounts of the two earplugs are different when the two distances are subjected to different change amounts (such as when the head is swung), so that the user experience is more realistic.
Drawings
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described with reference to the accompanying drawings, in which:
FIG. 1 is a diagram illustrating sound field distribution and position relationship;
FIG. 2 is a schematic view of two ears of a person;
fig. 3 is a flowchart of a volume control method of a wireless headset according to the present invention;
FIG. 4 is a flow chart for determining the real-time volume of two earpieces provided by the present invention;
FIG. 5 is a flow chart for determining the base volume of two earpieces provided by the present invention;
FIG. 6 is a flow chart for obtaining a first coefficient according to the present invention;
fig. 7 is a structural diagram of a volume control device of a wireless headset according to the present invention;
fig. 8 is a block diagram of a volume determination module provided in the present invention;
fig. 9 is a block diagram of a basic volume determination module provided in the present invention;
fig. 10 is a structural diagram of a basic volume obtaining module provided in the present invention;
fig. 11 is a structural diagram of a wireless headset according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
Before explaining the technical solution of the present invention, first, a sound field distribution theory of a sound source is described. As shown in fig. 1, as the distance from the sound source is greater, the sound emitted from the sound source passes through three sound field levels of a near field, a middle field, and a far field, respectively.
In different sound fields, the attenuation law of sound is different:
1. in the near field, the sound energy is large, the distribution is uniform, and the sound attenuation is reduced. The sound heard by the left and right ears is only affected by the human body, i.e. when the human head has a sound-insulating effect when the human side ears (i.e. both ears are on the same diffuse ray). In fig. 1, L represents the radius of the near field. L is determined according to sound sources, and the near field radiuses of different sound sources are different. In general, in a total anechoic room environment, a sound pressure distribution law of a sound source is measured by a sound pressure test device, so that a near-field radius L is determined.
2. The midfield is also called free field. In the midfield, there is attenuation of acoustic energy, and the attenuation is more serious with larger distance, generally about 6dB of attenuation. The degree of attenuation is dependent on the air conditions, and sound is transmitted through the air, affected by moderation, temperature, air flow, etc. Ideally, the degree of sound attenuation is related to distance (usually considered to be linear). Therefore, in the middle of the world, the sound heard by the left and right ears is affected by the external environment as well as the sound insulation effect of the head of the person. U denotes the radius of the free field. U is determined according to sound sources, and the free field radius of different sound sources is different. In general, in a total anechoic room environment, a sound pressure distribution law of a sound source is measured by a sound pressure test device, so that a radius U of a free field is determined.
3. In the far field, sound attenuation is severe. The left and right ears hardly hear the sound.
In the case where other conditions are kept consistent, the field strength of a sound at a certain place is in one-to-one correspondence with the volume of the human ear at that place. Thus, the volume available to the ear is determined by the distance between the ear and the sound producing device.
Fig. 1 also illustrates the positional relationship of two human ears or two earplugs in a sound field. In the 1# and 3# positions, one ear is in the far field and the other ear is in the free field, and the sounds heard by the two ears are different in magnitude. In the 2# position, both ears are located in the far field and the sound is heard with almost the same magnitude. It will be appreciated that many different positional relationships exist and are not exhaustive.
The invention is characterized in that the sound field level of the earphone is determined by the distance between the sound-producing device (as a sound source) and the earphone, and the volume of the earphone is determined according to the sound field level, so that the volume received by a user is changed along with the distance. In addition, the sound intensity level determines the volume of a specific gear on the earphone, and the method gains or attenuates the basic volume according to the target gear of the earphone to obtain the volume of the target gear, so that the playing volume of the wireless earphone is correspondingly changed along with the distance of a sound source and the requirements of a user. In addition, the volume difference between the two earphones is adjusted by utilizing the distance difference between the two earplugs and the sound generating device, so that the two ears of the user obtain different volumes, and the volume change amounts of the two earplugs are different when the two distances are subjected to different change amounts (such as when the head is swung), so that the user experience is more realistic.
It should be noted that, in the present application, the wireless headset may be a bluetooth or other wirelessly connected headset. The sound generating device in the present application may be any electronic device connected with the earphone through wireless, such as a mobile phone, a pad, a computer, an MP3, etc.
In view of the above core concept, the present invention provides an embodiment of a volume control method for a wireless headset, as shown in fig. 3, which may include the following steps:
s310: the distances between the pronunciation device and the two earplugs are collected in real time as a first distance and a second distance, respectively. It should be noted that the first distance may correspond to the left earplug or the right earplug, and the second distance corresponds to the right earplug or the left earplug, which is not limited herein.
When the pronunciation equipment and the wireless earphone are in an open state, the pronunciation equipment detects the first distance and the second distance in real time, and the detection frequency is determined according to a wireless communication protocol. By detecting the distance in real time and outputting the sound in real time, the user can experience the volume change of the wireless earphone caused by the distance change in real time, and the virtualization degree of the wireless earphone to the display is improved.
As an embodiment, after connecting the two earplugs by using bluetooth, the first distance d1 and the second distance d2 are acquired by a Received Signal Strength Indication (RSSI) technique. The RSSI is a positioning technique for measuring the distance between a signal point and a receiving point according to the strength of the received signal and further performing positioning calculation according to corresponding data.
S320: the real-time volume of the two earpieces is determined in dependence of the first distance and the second distance.
In one possible embodiment, the real-time volume of both earpieces may be determined according to a linear decay law. Specifically, the minimum value or the maximum value of the first distance and the second distance is determined, and the volume corresponding to the distance is calculated according to the field intensity of the sound source at the distance corresponding to the minimum value or the maximum value and is used as the real-time volume of the wireless earphone. In this embodiment, the output volume of both earplugs is the same.
In another possible embodiment, as shown in fig. 4, determining the real-time volume of the two earpieces specifically includes:
s410: and determining the basic volume of the two earplugs according to the first distance and the second distance, wherein the basic volume is the volume corresponding to the basic gear.
It should be noted that the wireless headset has a plurality of volume gears, so that the headset has a volume adjusting function.
In one possible embodiment, the base gear is a mid-range gear of the wireless headset. For example, if the wireless headset has 5 levels of volume, the basic level is 3 levels. The setting of the basic gear in the invention is not limited by the above examples.
It is to be understood that the basic gear may also be set to a low gear or a high gear.
In one possible embodiment, the base volume of both earplugs may be determined according to a linear decay law. Specifically, the minimum value or the maximum value of the first distance and the second distance is determined, and the volume corresponding to the distance is calculated as the basic volume of the two earplugs according to the field intensity of the sound source at the distance corresponding to the minimum value or the maximum value. In this embodiment, the base volume of both earpieces is the same.
In another possible embodiment, the sound volumes corresponding to the first and second distances are calculated as the base sound volume of the first and second earpieces, respectively, according to a linear attenuation law, depending on the field strengths of the sound source at the first and second distances, respectively. In this embodiment, the base volumes of the two earpieces are different, making the user experience of the wireless headset more realistic.
In yet another possible embodiment, the base volume of the first earpiece and the base volume of the second earpiece have a correlation. Specifically, as shown in fig. 5, determining the base volume of the two earpieces according to the first distance and the second distance specifically includes:
s510: obtaining a lesser of the first and second distances (d1, d2)minAs the base distance d.
S520: and determining the sound field level of the pronunciation device corresponding to the basic distance.
S530: obtaining a first base volume V of a first earplug according to a sound field levelxAnd a second basic volume V of a second earplugy。
In one possible embodiment, the earplug corresponding to the base distance is designated as the first earplug. And obtaining a first field intensity corresponding to the sound intensity level according to the sound intensity level, thus obtaining a first volume corresponding to the first field intensity through calculation, and taking the first volume as the basic volume of the first earplug and marking as the first basic volume.
Specifically, the method comprises the following steps:
1. if d < L, the sound field level is near field, the first basic volume is a volume corresponding to the radius of the near field to protect the user's ear.
That is, Vx=VL (1)
2. If L is less than or equal to d and less than U, the sound field level is a free field, and the step of acquiring the first basic volume comprises the following steps:
p1: the difference between the base distance d and the radius L of the near field is calculated as a second difference.
P2: calculating a second coefficient k2The product of the first difference and the second difference is taken as the second product.
In a possible embodiment, the second coefficient k is obtained2Comprises the following steps;
t1: in the all anechoic room environment, the difference of the field strengths corresponding to the radius L of the near field and the radius U of the free field is calculated as a fourth difference.
T2: the difference between the radius U of the free field and the radius L of the near field is calculated as a fifth difference.
T3: calculating a ratio between the fourth difference and the fifth difference as a second coefficient k2I.e. by
The second coefficient represents the attenuation of sound in the free field.
P3: volume V corresponding to the second product and radius L of the near fieldLAs the first basic volume Vx。
Thus, the first fundamental volume is expressed by the following formula
Vx=k2*(d-L)+VL (3)
3. If d > U, the sound field level is a far field, and the first basic volume is a volume V corresponding to the radius of the free fieldUI.e. by
Vx=VU (4)
In this real-time manner, specifically, as one embodiment, the second basic volume is the same as the first basic volume. However, in real circumstances, if the distances from the sound source to the two ears are different, the sizes of the sounds recognized by the two ears are different, that is, the human body (particularly, the head of the human body) has a sound insulation effect. Thus, both earpieces output sound at the same volume, which is not the case with reality, making the user experience of the wireless headset less realistic.
In view of the above, in a preferred embodiment, the second basic volume is obtained as follows.
Q1: and judging whether the sound field level is a far field. If yes, go to Q4; otherwise, Q2-Q3 are executed.
Q2: calculating a difference between the first distance and the second distance as a first difference D1。
Q3: according to a first coefficient k1First difference D1And a first basic volume VxCalculating a second basic volume VyI.e. by
Vy=Vx+k1*D1 (5)
That is to say:
1. v if the sound field level is near fieldy=VL+k1*D1 (6)
Thus, the volume of earplugs further from the sound generating device varies with the volume of earplugs closer to the sound generating device.
After a user wears the wireless earphone, if the user is in a near field, the sound energy is enough, and a sound field with enough strength is available everywhere. If the user moves away from or close to the sound-producing device along the direction of the diffused ray, the relative sound field intensity at the two earplugs is kept unchanged, so that the sound volumes of the two earplugs can be increased or decreased in the same magnitude. If the user swings the head, the distance difference between the two earplugs changes, so that the sound field intensity at the two earplugs changes, and the sound volumes of the two earplugs are increased or decreased in different amplitudes, so that the user experiences real sound volume changes.
When the earplug closer to the sound-producing device is at the boundary between the near field and the free field, the sound field intensity is a first critical value, whereby the volume of the earplug is smoothed to the free field.
2. If the sound field level is free field, then Vy=k2*(d-L)+VL+k1*D1 (7)
Since the sound in the free field exhibits linear attenuation, in this embodiment, the volume of the earplugs closer to the sound generating device is larger, and the volume of the earplugs farther from the sound generating device is smaller.
When the earplug closer to the sound generating device is located at the boundary between the free field and the far field, the sound field intensity is just the second critical value, whereby the volume of the earplug is smoothly transitioned to the far field.
When the user moves away from or close to the sound generating device along the direction of the diffused ray in the free field, the sound volume of the two earplugs can be increased or decreased with the same amplitude along the distance. If the user swings the head, the distance difference between the two earplugs changes, so that the sound field intensity at the two earplugs changes, and the sound volumes of the two earplugs are increased or decreased in different amplitudes, so that the user experiences real sound volume changes.
In one possible embodiment, as shown in FIG. 6, a first coefficient k is obtained1The method comprises the following steps:
s610: two earplugs are placed in the free field of the sound-generating device and are located on the same diffuse wire of the sound-generating device, the distance between the two earplugs being the distance Δ between the two human ears.
As shown in fig. 2, R1 and R2 are the two ears of a human, respectively, and the distance between the two ears is Δ. When a user wears the two earplugs on the ears with the ears on the same diffusion wire, the distance between the two ears can be considered as the sound insulation distance of the human body.
As an example, after connecting two earplugs by using bluetooth, the distance Δ between the two earplugs is obtained by using True Wireless Stereo (TWS) technology. In the TWS technology, the pronunciation equipment is connected with the main earphone, and then the main earphone is quickly connected with the auxiliary earphone in a wireless mode, so that the real wireless separation and use of the left and right sound channels are realized.
S620: the field strengths at the two earplugs are collected as a first field strength ELAnd a second field strength ERAnd a first field strength ELGreater than the second field strength ER。
S630: calculating a second field strength ERAnd a first field strength ELAs a third difference.
S640: calculating a ratio delta of the third difference to the distance between the two human ears as a first coefficient k1I.e. by
First coefficient k1The effect of isolating the human body from the sound is reflected.
Q4: the second basic volume is the same as the first basic volume, i.e. Vy=Vx(9)
3. When a user is in a far field, the sound attenuation is serious, the intensity of a sound field is small, the sound insulation effect of a human body is weak, and therefore the sound volumes of the two earplugs in the far field are the same. The user moves away from or close to the sound producing device in the direction of the diffuse radiation, or swings the head, and the volume of both earplugs does not change.
In a preferred embodiment, if the sound field level is far field, the first alarm information is output, and the first alarm information indicates that the wireless headset is located in far field of the sound generating device. Specifically, the first alarm information may be issued by outputting an alarm sound through an ear plug, or by flashing a signal lamp on the wireless headset.
S420: a current volume gear of the wireless headset is identified.
S430: and adjusting the basic volume according to the current volume gear to obtain the target volume of the two earplugs corresponding to the current volume gear, wherein the target volume is used as the real-time volume of the two earplugs.
In a possible implementation manner, adjusting the basic volume according to the current volume level specifically includes:
g1: and calculating the variation between the current volume gear and the basic gear.
And continuing to set the volume of the five gears, if the basic gear is 3 and the current volume gear is 2, the variation is 1 gear.
G2: and respectively adjusting the basic volume of the two earplugs according to the variable quantity to obtain the target volume of the two earplugs.
In one possible embodiment, the base volume is adjusted in an exponential incremental manner.
In the example of the previous step, from the variation amount of 1 gear, the indexes corresponding to the first basic volume and the second basic volume are respectively reduced by 1, and the target volumes of the first earplug and the second earplug are obtained.
It will be appreciated that a sophisticated volume adjustment scheme in the headset may also be employed to adjust the base volume to achieve the target volume.
S330: and outputting the audio of the pronunciation equipment according to the real-time volume of the two earplugs.
On the basis, after the wireless earphone is connected with the pronunciation equipment, the detection of the wireless earphone is usually carried out, and the normal use of the wireless earphone is ensured. First, two earplugs send out signals, and after the sound generating device receives the signals through Bluetooth, whether the distance difference between the two earplugs and the sound generating device is larger than a distance threshold value, wherein the distance threshold value is the maximum distance (for example, 40cm) between the two earplugs of a person. If so, second alarm information is sent out, and the second alarm information indicates that at least one of the two earplugs is not normally used, for example, only one of the earplugs is worn on the ear.
Specifically, the second alarm information may be sent out simultaneously by two earplugs, or the second alarm information may be sent out by an earplug corresponding to a larger distance between the two earplugs and the sound generating device, or by flashing a signal lamp on the wireless headset.
Corresponding to the above embodiments and preferred solutions, the present invention further provides an embodiment of a volume control device of a wireless headset, which specifically includes a distance acquisition module 710, a volume determination module 720, and an output module 730, as shown in fig. 7.
The distance acquisition module 710 is used for acquiring the distance between the pronunciation device and the two earplugs as the first distance and the second distance in real time.
The volume determination module 720 is configured to determine the real-time volume of the two earpieces according to the first distance and the second distance.
The output module 730 is used for outputting the audio of the pronunciation device according to the real-time volume of the two earpieces.
In one possible implementation, as shown in fig. 8, the volume determination module 720 includes a basic volume determination module 7201, a gear identification module 7202, and an adjustment module 7203.
The basic volume determining module 7201 is configured to determine basic volumes of the two earplugs according to the first distance and the second distance, where the basic volume is a volume corresponding to the basic level.
The gear identification module 7202 is configured to identify a current volume gear of the wireless headset.
The adjusting module 7203 is configured to adjust the basic volume according to the current volume gear, obtain the target volume of the two earplugs corresponding to the current volume gear, and use the target volume as the real-time volume of the two earplugs.
In one possible implementation, as shown in fig. 9, the basic volume determination module 7201 includes a basic distance acquisition module 72011, a sound field level determination module 72012, and a basic volume acquisition module 72013.
The base distance acquisition module 72011 is configured to acquire a smaller value of the first distance and the second distance as the base distance.
The sound field level determination module 72012 is configured to determine a sound field level of a sound generation apparatus corresponding to the base distance.
The basic volume obtaining module 72013 is used to obtain a first basic volume of the first ear bud and a second basic volume of the second ear bud according to the sound field level.
In one possible implementation, as shown in fig. 10, the basic volume obtaining module 72013 includes a judging module 720131, a difference calculating module 720132 and a second basic volume determining module 720133.
The decision block 720131 is used to decide whether the sound field level is far field.
The difference calculation module 720132 is configured to calculate a difference between the first distance and the second distance as the first difference.
The second basic volume determining module 720133 is configured to calculate a second basic volume according to the first coefficient, the first difference, and the first basic volume if the sound field level is far field.
In one possible implementation manner, the second basic volume determining module is further configured to use a volume corresponding to a radius of a free field as the second basic volume if the sound field level is the far field.
It should be understood that the division of the components of the volume control device of the wireless headset shown in fig. 7-10 above is merely a logical division, and the actual implementation may be wholly or partially integrated into one physical entity or physically separated. And these components may all be implemented in software invoked by a processing element; or may be implemented entirely in hardware; and part of the components can be realized in the form of calling by the processing element in software, and part of the components can be realized in the form of hardware. For example, a certain module may be a separate processing element, or may be integrated into a certain chip of the electronic device. Other components are implemented similarly. In addition, all or part of the components can be integrated together or can be independently realized. In implementation, each step of the above method or each component above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above components may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors (DSPs), one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, these components may be integrated together and implemented in the form of a System-On-a-Chip (SOC).
In view of the foregoing examples and their preferred embodiments, it will be appreciated by those skilled in the art that in practice, the invention may be practiced in a variety of embodiments, and that the invention is illustrated schematically in the following vectors:
(1) a wireless headset may include:
one or more processors, memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the wireless headset, cause the wireless headset to perform the steps/functions of the foregoing embodiments or an equivalent implementation.
Fig. 11 is a schematic structural diagram of a wireless headset according to an embodiment of the present invention. As shown particularly in fig. 11, the wireless headset 900 includes a processor 910, audio circuitry 980, and memory 930. Wherein the audio circuit comprises a speaker 982, a microphone 984, etc., the processor 910 and the memory 930 may communicate with each other via internal communication paths to transfer control and/or data signals, the memory 930 may be used to store computer programs, and the processor 910 may be used to retrieve and run the computer programs from the memory 930. The processor 910 and the memory 930 may be combined into a single processing device, or more generally, separate components, and the processor 910 is configured to execute the program code stored in the memory 930 to implement the functions described above. In particular implementations, the memory 930 may be integrated with the processor 910 or may be separate from the processor 910.
In addition, in order to make the function of the wireless headset 900 more complete, the wireless headset 900 may further include one or more of an input unit 960, a display unit 970, a camera 990, a sensor 901, and the like. The display unit 970 may include a display screen, among others.
Further, the wireless headset 900 may also include a power supply 950 for providing power to various devices or circuits within the wireless headset 900.
It should be understood that the wireless headset 900 shown in fig. 11 is capable of implementing the various processes of the methods provided by the foregoing embodiments. The operations and/or functions of the various components in the wireless headset 900 may each be configured to implement the corresponding processes in the above-described method embodiments. Reference is made in detail to the foregoing description of embodiments of the method, apparatus, etc., and a detailed description is omitted here as appropriate to avoid redundancy.
It should be understood that the processor 910 in the wireless headset 900 shown in fig. 11 may be a system on a chip SOC, and the processor 910 may include a Central Processing Unit (CPU), and may further include other types of processors, such as: an image Processing Unit (GPU), etc., which will be described in detail later.
In summary, various portions of the processors or processing units within the processor 910 may cooperate to implement the foregoing method flows, and corresponding software programs for the various portions of the processors or processing units may be stored in the memory 930.
(2) A readable storage medium, on which a computer program or the above-mentioned apparatus is stored, which, when executed, causes the computer to perform the steps/functions of the above-mentioned embodiments or equivalent implementations.
In the several embodiments provided by the present invention, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on this understanding, some aspects of the present invention may be embodied in the form of software products as follows, or portions thereof that substantially contribute to the art.
(3) A computer program product (which may include the above apparatus) which, when run on a terminal device, causes the terminal device to perform the volume control method of the wireless headset of the foregoing embodiment or an equivalent embodiment.
From the above description of the embodiments, it is clear to those skilled in the art that all or part of the steps in the above implementation method can be implemented by software plus a necessary general hardware platform.
In the embodiments of the present invention, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of skill in the art will appreciate that the various modules, elements, and method steps described in the embodiments disclosed in this specification can be implemented as electronic hardware, combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In addition, the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments may be referred to each other. In particular, for embodiments of devices, apparatuses, etc., since they are substantially similar to the method embodiments, reference may be made to some of the descriptions of the method embodiments for their relevant points. The above-described embodiments of devices, apparatuses, etc. are merely illustrative, and modules, units, etc. described as separate components may or may not be physically separate, and may be located in one place or distributed in multiple places, for example, on nodes of a system network. Some or all of the modules and units can be selected according to actual needs to achieve the purpose of the above-mentioned embodiment. Can be understood and carried out by those skilled in the art without inventive effort.
The structure, features and effects of the present invention have been described in detail with reference to the embodiments shown in the drawings, but the above embodiments are merely preferred embodiments of the present invention, and it should be understood that technical features related to the above embodiments and preferred modes thereof can be reasonably combined and configured into various equivalent schemes by those skilled in the art without departing from and changing the design idea and technical effects of the present invention; therefore, the invention is not limited to the embodiments shown in the drawings, and all the modifications and equivalent embodiments that can be made according to the idea of the invention are within the scope of the invention as long as they are not beyond the spirit of the description and the drawings.
Claims (19)
1. A method for controlling volume of a wireless headset, comprising:
acquiring the distance between the pronunciation equipment and the two earplugs in real time, wherein the distance is respectively used as a first distance and a second distance;
determining a real-time volume of the two earpieces as a function of the first distance and the second distance;
and outputting the audio frequency of the pronunciation equipment according to the real-time volume of the two earplugs.
2. The volume control method of claim 1, wherein determining the real-time volume of the two earpieces according to the first distance and the second distance comprises:
determining a base volume of the two earplugs according to the first distance and the second distance, wherein the base volume is a volume corresponding to a base gear;
identifying a current volume gear of the wireless headset;
and adjusting the basic volume according to the current volume gear to obtain the target volume of the two earplugs corresponding to the current volume gear, wherein the target volume is used as the real-time volume of the two earplugs.
3. The method of claim 2, wherein determining the base volume of the two earpieces according to the first distance and the second distance comprises:
acquiring a smaller value of the first distance and the second distance as a basic distance;
determining sound field levels of the pronunciation device corresponding to the basic distance, wherein the sound field levels comprise a near field, a free field and a far field;
a first base volume of a first earpiece and a second base volume of a second earpiece is obtained as a function of the sound field level.
4. The volume control method of a wireless headset according to claim 3, wherein the first basic volume and the second basic volume are the same.
5. The volume control method of the wireless headset according to claim 3, wherein determining the second basic volume specifically comprises:
judging whether the sound field level is a far field;
if not, calculating the difference between the first distance and the second distance as a first difference;
calculating a second basic volume according to a first coefficient, an absolute value of the first difference, and the first basic volume.
6. The volume control method of a wireless headset according to claim 5, wherein if the sound field level is a far field, the first basic volume and the second basic volume are both volumes corresponding to a radius of the free field;
if the sound field level is a near field, the first basic volume is a volume corresponding to a radius of the near field.
7. The volume control method of a wireless headset according to claim 5 or 6, wherein if the sound field level is a far field, first alarm information is outputted.
8. The volume control method of claim 5, wherein if the sound field level is a free field, obtaining the first basic volume comprises:
calculating a difference between the base distance and the radius of the near field as a second difference;
calculating a product of a second coefficient and the second difference as a second product;
taking the sum of the volumes of the second product corresponding to the radius of the near field as the first base volume.
9. The volume control method of the wireless headset according to claim 5, wherein the obtaining the first coefficient comprises the steps of:
placing two earplugs in a free field of the sound-generating device, and the two earplugs are positioned on the same diffusion wire of the sound-generating device, and the distance between the two earplugs is the distance between two human ears;
collecting field strengths at the two earplugs as a first field strength and a second field strength, and the first field strength being greater than the second field strength;
calculating the difference between the second field strength and the first field strength as a third difference;
calculating a ratio of the third difference to a distance between the two human ears as the first coefficient.
10. The volume control method of the wireless headset according to claim 8, wherein the obtaining of the second coefficient comprises the steps of;
calculating a difference in field strength corresponding to the radius of the near field and the radius of the free field as a fourth difference within a total anechoic chamber environment;
calculating a difference between the radius of the free field and the radius of the near field as a fifth difference;
calculating a ratio between the fourth difference and the fifth difference as the second coefficient.
11. The volume control method of a wireless headset according to claim 1, further comprising:
determining whether a distance difference between the two earpieces and the sound-emitting device is greater than a distance threshold before determining the real-time volume of the two earpieces;
if yes, second alarm information is sent out.
12. The volume control method of a wireless headset according to claim 11, wherein the second alarm information is issued through the earpieces corresponding to a larger distance between the two earpieces and the sound-emitting device.
13. The volume control method of the wireless headset according to claim 2, wherein adjusting the basic volume according to the current volume level specifically comprises:
calculating the variable quantity between the current volume gear and a basic gear;
and respectively adjusting the basic volume of the two earplugs according to the variable quantity to obtain the target volume of the two earplugs.
14. A volume control device of a wireless earphone is characterized by comprising a distance acquisition module, a volume determination module and an output module;
the distance acquisition module is used for acquiring the distance between the pronunciation equipment and the two earplugs in real time as a first distance and a second distance respectively;
the volume determination module is used for determining the real-time volume of the two earplugs according to the first distance and the second distance;
the output module is used for outputting the audio frequency of the pronunciation equipment according to the real-time volume of the two earplugs.
15. The volume control device of a wireless headset according to claim 14, wherein the volume determination module comprises a basic volume determination module, a gear identification module and an adjustment module;
the basic volume determining module is used for determining basic volumes of the two earplugs according to the first distance and the second distance, wherein the basic volumes are the volumes corresponding to basic gears;
the gear identification module is used for identifying the current volume gear of the wireless headset;
the adjusting module is used for adjusting the basic volume according to the current volume gear, and obtaining the target volume of the two earplugs corresponding to the current volume gear as the real-time volume of the two earplugs.
16. The volume control device of a wireless earphone according to claim 15, wherein the basic volume determining module comprises a basic distance obtaining module, a sound field level determining module and a basic volume obtaining module;
the basic distance obtaining module is used for obtaining a smaller value of the first distance and the second distance as a basic distance;
the sound field level determining module is used for determining the sound field level of the pronunciation device corresponding to the basic distance, wherein the sound field level comprises a near field, a free field and a far field;
the basic volume obtaining module is used for obtaining a first basic volume of a first earplug and a second basic volume of a second earplug according to the sound field level.
17. The volume control device of a wireless earphone according to claim 16, wherein the basic volume obtaining module comprises a judging module, a difference calculating module and a second basic volume determining module;
the judging module is used for judging whether the sound field level is a far field;
the difference value calculating module is used for calculating the difference between the first distance and the second distance as a first difference;
the second basic volume determining module is configured to calculate a second basic volume according to a first coefficient, the first difference, and the first basic volume if the sound field level is a far field.
18. A wireless headset, comprising:
one or more processors, memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the wireless headset, cause the wireless headset to perform the method of volume control of a wireless headset of any of claims 1-13.
19. A computer-readable storage medium, in which a computer program is stored, which, when run on a computer, causes the computer to execute the volume control method of a wireless headset according to any one of claims 1 to 13.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111117074.XA CN113810817B (en) | 2021-09-23 | 2021-09-23 | Volume control method and device of wireless earphone and wireless earphone |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111117074.XA CN113810817B (en) | 2021-09-23 | 2021-09-23 | Volume control method and device of wireless earphone and wireless earphone |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113810817A true CN113810817A (en) | 2021-12-17 |
| CN113810817B CN113810817B (en) | 2023-11-24 |
Family
ID=78940073
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111117074.XA Active CN113810817B (en) | 2021-09-23 | 2021-09-23 | Volume control method and device of wireless earphone and wireless earphone |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113810817B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9992602B1 (en) * | 2017-01-12 | 2018-06-05 | Google Llc | Decoupled binaural rendering |
| US20180213317A1 (en) * | 2015-07-17 | 2018-07-26 | Zte Corporation | Method and Apparatus for Adjusting Sound Field of an Earphone and a Terminal |
| CN109639908A (en) * | 2019-01-28 | 2019-04-16 | 上海与德通讯技术有限公司 | A kind of bluetooth headset, anti-eavesdrop method, apparatus, equipment and medium |
| US20200112815A1 (en) * | 2018-10-05 | 2020-04-09 | Magic Leap, Inc. | Near-field audio rendering |
| CN112272342A (en) * | 2020-10-28 | 2021-01-26 | 上海闻泰信息技术有限公司 | Volume automatic adjusting method and device, Bluetooth headset and storage medium |
| CN113207056A (en) * | 2021-04-30 | 2021-08-03 | 歌尔科技有限公司 | Wireless earphone and transparent transmission method, device and system thereof |
-
2021
- 2021-09-23 CN CN202111117074.XA patent/CN113810817B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180213317A1 (en) * | 2015-07-17 | 2018-07-26 | Zte Corporation | Method and Apparatus for Adjusting Sound Field of an Earphone and a Terminal |
| US9992602B1 (en) * | 2017-01-12 | 2018-06-05 | Google Llc | Decoupled binaural rendering |
| US20200112815A1 (en) * | 2018-10-05 | 2020-04-09 | Magic Leap, Inc. | Near-field audio rendering |
| CN109639908A (en) * | 2019-01-28 | 2019-04-16 | 上海与德通讯技术有限公司 | A kind of bluetooth headset, anti-eavesdrop method, apparatus, equipment and medium |
| CN112272342A (en) * | 2020-10-28 | 2021-01-26 | 上海闻泰信息技术有限公司 | Volume automatic adjusting method and device, Bluetooth headset and storage medium |
| CN113207056A (en) * | 2021-04-30 | 2021-08-03 | 歌尔科技有限公司 | Wireless earphone and transparent transmission method, device and system thereof |
Non-Patent Citations (2)
| Title |
|---|
| YU-TING TSAI;等: "Effects of porous materials in an insert earphone on its frequency response -experiments and simulations", 《 IEEE TRANSACTIONS ON ULTRASONICS, FERROELECTRICS, AND FREQUENCY CONTROL 》, vol. 59, no. 11, XP011491539, DOI: 10.1109/TUFFC.2012.2487 * |
| 陈飞;: "低功耗智能蓝牙云交互耳机的设计与实现", 电脑知识与技术, no. 28 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113810817B (en) | 2023-11-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10939225B2 (en) | Calibrating listening devices | |
| CN104284286B (en) | Determination of individual HRTFs | |
| US8160265B2 (en) | Method and apparatus for enhancing the generation of three-dimensional sound in headphone devices | |
| CN115250412B (en) | Audio processing method, device, wireless headset and computer readable medium | |
| US9769585B1 (en) | Positioning surround sound for virtual acoustic presence | |
| CN114727212A (en) | Audio processing method and electronic equipment | |
| CN111372167B (en) | Sound effect optimization method and device, electronic equipment and storage medium | |
| CN107182011A (en) | Audio frequency playing method and system, mobile terminal, WiFi earphones | |
| CN108076400A (en) | A kind of calibration and optimization method for 3D audio Headphone reproducings | |
| CN116208907A (en) | Spatial audio processing device, apparatus, method and headphone | |
| CN115002607B (en) | Sound source location determination method, equipment and storage medium | |
| CN116367031A (en) | Listening device, listening system and method for determining auricle shape of user | |
| CN113810817B (en) | Volume control method and device of wireless earphone and wireless earphone | |
| EP3565278B1 (en) | Audio modification system and method thereof | |
| CN108574925A (en) | The method and apparatus that audio signal output is controlled in virtual auditory environment | |
| KR102613035B1 (en) | Earphone with sound correction function and recording method using it | |
| CN121002897A (en) | Virtual auditory display filters and associated systems, methods, and non-transitory computer-readable media | |
| CN116233730A (en) | Spatial audio processing device, device, method and headphones | |
| TW201914315A (en) | Wearable audio processing device and audio processing method thereof | |
| CN116208886A (en) | Method, host, and computer-readable medium for adjusting speaker audio | |
| CN208079373U (en) | Audio frequency broadcast system, mobile terminal, WiFi earphones | |
| US20200128324A1 (en) | Networked speaker system with combined power over ethernet and audio delivery | |
| CN114915881A (en) | Control method, electronic device and storage medium for virtual reality headset | |
| CN109963232A (en) | Audio signal playback device and corresponding audio signal processing method | |
| CN111213390B (en) | Sound converter |
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 |