CN114900579B - Electronic equipment and volume control method - Google Patents
Electronic equipment and volume control method Download PDFInfo
- Publication number
- CN114900579B CN114900579B CN202210317021.0A CN202210317021A CN114900579B CN 114900579 B CN114900579 B CN 114900579B CN 202210317021 A CN202210317021 A CN 202210317021A CN 114900579 B CN114900579 B CN 114900579B
- Authority
- CN
- China
- Prior art keywords
- sound
- ratio
- volume
- signal value
- cavity
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 230000007613 environmental effect Effects 0.000 claims abstract description 35
- 230000005236 sound signal Effects 0.000 claims abstract description 25
- 238000004891 communication Methods 0.000 claims description 10
- 230000000694 effects Effects 0.000 description 6
- 239000003638 chemical reducing agent Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000002592 echocardiography Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6016—Substation equipment, e.g. for use by subscribers including speech amplifiers in the receiver circuit
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention discloses an electronic device and a volume control method, wherein the electronic device comprises a shell, a sound generating unit, a sound pickup unit and a control device, a first sound hole and a second sound hole are arranged on the shell, and the volume control method comprises the following steps: acquiring a sound emitting mode of the electronic equipment; when the sound emitting mode of the electronic equipment is the receiver mode, acquiring a real-time sound signal acquired by the sound pickup unit; according to the real-time sound signal, acquiring an environmental noise signal value of the environment where the electronic equipment is located and an echo signal value generated by the electronic equipment; according to the environmental noise signal value, the echo signal value and the current volume value of the sounding unit, the volume of the sounding unit is adjusted.
Description
Technical Field
The present invention relates to the field of electronic devices, and in particular, to an electronic device and a volume control method.
Background
For example, in the electronic device, the volume of the earphone is often required to be adjusted in the conversation process, and at present, the volume of the earphone is manually adjusted by a user, but in the actual operation process, the user cannot determine to what extent the volume of the earphone is adjusted, so that people around can be prevented from hearing conversation contents. Furthermore, the user does not perceive that surrounding people can hear the conversation content, and the receiver sound cannot be adjusted in real time, so that the conversation content is leaked.
Disclosure of Invention
The invention mainly aims to provide electronic equipment and a volume control method thereof, which aim to automatically adjust the volume of a sound generating unit according to surrounding environment sounds and avoid leakage of conversation contents.
In order to achieve the above object, the present invention provides a volume control method applied to an electronic device, the electronic device including a housing, a sound generating unit, a sound pickup unit, and a control device electrically connected to the sound generating unit and the sound pickup unit, the sound generating unit being disposed in the housing and cooperating with the housing to define a sound cavity, the housing being provided with a first sound hole and a second sound hole that are communicated with the sound cavity, wherein the sound cavity includes a front cavity and a rear cavity, the first sound hole is communicated with the front cavity, and the second sound hole is switchably communicated with the front cavity or the rear cavity, the volume control method comprising the steps of:
acquiring a sound emitting mode of the electronic equipment;
When the sound emitting mode of the electronic equipment is a receiver mode, the second sound hole is controlled to be communicated with the rear cavity, sound waves with opposite phases are emitted by the first sound hole and the second sound hole, and meanwhile, the control device acquires real-time sound signals acquired by the sound pickup unit;
According to the real-time sound signal, acquiring an environmental noise signal value of the environment where the electronic equipment is located and an echo signal value generated by the electronic equipment;
and adjusting the volume of the sounding unit according to the environmental noise signal value, the echo signal value and the current volume value of the sounding unit.
Optionally, the electronic device further includes a switching mechanism movably connected with the housing, the switching mechanism having a first state in which the second sound hole is in communication with the front cavity and a second state in which the second sound hole is in communication with the rear cavity;
When the sound emitting mode of the electronic equipment is the receiver mode, the step of acquiring the real-time sound signal acquired by the sound pickup unit comprises the following steps:
when the sound emitting mode of the electronic equipment is the earphone mode, controlling the switching mechanism to switch to the second state;
when the second sound hole is communicated with the rear cavity, acquiring a real-time sound signal acquired by the sound pickup unit;
After the step of obtaining the sound emitting mode of the electronic device, the method further comprises the following steps:
and when the sound emitting mode of the electronic equipment is the play mode, controlling the switching mechanism to switch to the first state.
Optionally, the step of adjusting the volume of the sound generating unit according to the ambient noise signal value, the echo signal value, and the current volume value of the sound generating unit includes:
And adjusting the volume of the sound generating unit according to the echo signal value and the magnitude relation between the current volume value of the sound generating unit and the environmental noise signal value.
Optionally, the step of adjusting the volume of the sound generating unit according to the echo signal value and the magnitude relation between the current volume value of the sound generating unit and the ambient noise signal value comprises:
Dividing the echo signal value by the ambient noise signal value to obtain a first ratio, and dividing a current volume value of the sound generating unit by the ambient noise signal value to obtain a second ratio;
And adjusting the volume of the sound generating unit according to the first ratio and the second ratio.
Optionally, the step of adjusting the volume of the sound generating unit according to the first ratio and the second ratio includes:
comparing the first ratio with a first set ratio, and comparing the second ratio with a second set ratio, wherein the first set ratio is a ratio between an echo signal value and an environmental noise signal value when the environmental noise influences the hearing of the echo, and the second set ratio is a ratio between a current sound value and the environmental noise signal value when the environmental noise influences the hearing of the sound emitted by the sounding unit;
When the first ratio is larger than the first set ratio and the second ratio is larger than the second set ratio, reducing the volume of the sounding unit;
And when the first ratio is smaller than the first set ratio and the second ratio is smaller than the second set ratio, increasing the volume of the sounding unit.
Optionally, after the step of comparing the first ratio with the first set ratio and the second ratio with the second set ratio, the method further includes:
When the first ratio is larger than the first set ratio and the second ratio is smaller than the second set ratio, reducing the volume of the sounding unit so that the first ratio reaches the first set ratio;
and when the first ratio is smaller than the first set ratio and the second ratio is larger than the second set ratio, controlling the sounding unit to keep at the current sound volume value.
The present invention also provides an electronic device including:
The sound generating device comprises a shell, wherein the shell is provided with a sound generating unit and a sound pickup unit, the sound generating unit is matched with the shell to define a sound cavity, a first sound hole and a second sound hole which are communicated with the sound cavity are formed in the shell, the sound cavity comprises a front cavity and a rear cavity, the first sound hole is communicated with the front cavity, and the second sound hole is switchably communicated with the front cavity or the rear cavity;
The control device is electrically connected with the sounding unit and the sound pickup unit, and comprises a memory, a processor and a control program of the electronic equipment, wherein the control program of the electronic equipment is executed by the processor to realize the steps of the volume control method according to any one of the above.
Optionally, the housing has a front face, a back face and a top side face, the front face is provided with a display part, the back face is opposite to the front face, and the top side face is located between the back face and the front face;
The first sound hole is arranged on the front surface of the shell or the joint of the front surface and the top side surface;
the second sound hole is arranged on the back surface, the top side surface or the joint of the back surface and the top side surface.
Optionally, the electronic device further includes:
The switching mechanism is movably connected with the shell, and has a first state and a second state, the second sound hole is communicated with the front cavity in the first state, and the second sound hole is communicated with the rear cavity in the second state;
the control device is also electrically connected with the switching mechanism.
Optionally, the switching mechanism comprises a movable member
The switch piece is arranged in a movable way, and one end of the switch piece is rotatably arranged in the shell;
the switch also comprises a rotation driving mechanism, wherein the rotation driving mechanism is used for driving the switch piece to switch between the first state and the second state.
In the technical scheme provided by the invention, the real-time sound signal acquired by the sound pickup unit is acquired in the receiver mode, and the environmental noise signal value of the environment where the electronic equipment is located and the echo signal value generated by the electronic equipment are acquired according to the real-time sound signal. Meanwhile, according to the environmental noise signal value, the echo signal value and the current sound volume value of the sound generating unit, the sound volume of the sound generating unit is adjusted, so that sound leakage is further reduced by adjusting the sound volume of the sound generating unit.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic front view of an embodiment of an electronic device according to the present invention;
FIG. 2 is a schematic side view of the electronic device provided in FIG. 1;
FIG. 3 is a schematic diagram of a control portion of the electronic device of FIG. 1;
FIG. 4 is a schematic front view of another embodiment of an electronic device according to the present invention;
FIG. 5 is a schematic perspective view of FIG. 4 partially in section;
FIG. 6 is a schematic perspective view of a portion of FIG. 4;
FIG. 7 is a schematic perspective view of the housing of FIG. 6 with portions removed;
FIG. 8 is a schematic cross-sectional view of the electronic device of FIG. 4 when the switch member is in the first state;
FIG. 9 is a schematic cross-sectional view of the electronic device of FIG. 4 when the switch member is in the second state;
Fig. 10 is an exploded perspective view of the switching mechanism of the electronic device of fig. 4;
fig. 11 is a flowchart illustrating an embodiment of a volume control method according to the present invention.
Reference numerals illustrate:
Reference numerals | Name of the name | Reference numerals | Name of the name |
100 | Electronic equipment | 3 | Sound pickup unit |
1 | Shell body | 4 | Control device |
11 | First sound hole | 5 | Switching mechanism |
12 | Second sound hole | 51 | Switch piece |
13 | Front cavity | 52 | Rotation driving mechanism |
14 | Rear cavity | 521 | Motor with a motor housing |
2 | Sound producing unit | 522 | Speed reducer |
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and rear … …) are included in the embodiments of the present invention, the directional indications are merely used to explain the relative positional relationship, movement conditions, etc. between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the meaning of "and/or" as it appears throughout includes three parallel schemes, for example "A and/or B", including the A scheme, or the B scheme, or the scheme where A and B are satisfied simultaneously. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
The invention provides an electronic device, which can be, but not limited to, a mobile phone, obviously, the electronic device can also be a computer, a VR product and the like, and the specific type of the electronic device is not limited for this purpose, and in the embodiment of the invention, the electronic device is a smart phone.
Fig. 1 to 3 are diagrams showing an embodiment of an electronic device according to the present invention, referring to fig. 1 to 3, the electronic device 100 includes a housing 1, a sound generating unit 2 and a sound pickup unit 3 disposed in the housing 1, and a control device 4, the sound generating unit 2 is disposed in the housing 1 and cooperates with the housing to define a sound cavity, the housing 1 is provided with a first sound hole 11 and a second sound hole 12 that are in communication with the sound cavity, the sound cavity includes a front cavity 13 and a rear cavity 14, the first sound hole 11 is in communication with the front cavity 13, the second sound hole 12 is switchably in communication with the front cavity 13 or the rear cavity 14, the control device 4 is electrically connected with the sound generating unit 2 and the sound pickup unit 3, the control device 4 includes a memory, a processor, and a control program of the electronic device 100 stored in the memory, the processor executes the control program to implement the following steps of the control method of the electronic device 100, and the steps of the control method of the electronic device 100 are specifically referred to in the following steps.
In the technical scheme of the invention, in the receiver mode, the real-time sound signal collected by the sound pickup unit 3 is obtained, and the environmental noise signal value of the environment where the electronic device 100 is located and the echo signal value generated by the electronic device 100 are obtained according to the real-time sound signal, because in the technical scheme of the invention, the first sound hole 11 and the second sound hole 12 are arranged, the sound wave of the first sound hole 11 and the sound wave of the second sound hole 12 are opposite in phase, so that a dipole effect is formed, and the sound leakage of the electronic device 100 can be avoided. According to the technical scheme, the volume of the sounding unit 2 is adjusted according to the environmental noise signal value, the echo signal value and the current volume value of the sounding unit 2, so that sound leakage is further reduced by adjusting the volume of the sounding unit 2.
In the embodiment of the invention, the housing 1 has a front surface, a back surface and a top side surface, the front surface is provided with a display part, the back surface is opposite to the front surface, the top side surface is positioned between the back surface and the front surface, the first sound hole 11 is arranged on the front surface of the housing or on the junction of the front surface and the top side surface, and the second sound hole 12 is arranged on the back surface, the top side surface or the junction of the back surface and the top side surface, therefore, the distance between the second sound hole 12 and the first sound hole 11 is relatively close, and the acoustic dipole is relatively easy to form. It is obvious that the present design is not limited to this, and the first sound hole 11 and the second sound hole 12 may be provided on the side surface of the casing 1, and other arrangement methods may be also used.
In the embodiment of the present invention, the electronic device 100 further includes a switching mechanism 5, where the switching mechanism 5 is movably connected to the housing 1, and the switching mechanism 5 has a first state in which the second sound hole 12 is in communication with the front cavity 13 and a second state in which the second sound hole 12 is in communication with the rear cavity 14, and specifically, in an embodiment of the present invention, the switching mechanism includes a door body and a driving device for driving the door body. The control device 4 is further electrically connected to the switching mechanism, specifically, the driving device, so as to control the door opening and closing mechanism to control the communication or interval between the second sound hole 12 and the rear cavity 14 by controlling the driving device, so that the electronic device 100 can be switched between the earphone and the external playing mode.
In the embodiment of the present invention, referring to fig. 4 to 10, the switching mechanism 5 includes a switch member 51 movably disposed, and one end of the switch member 51 is rotatably mounted in the housing 1; the switching mechanism 5 further includes a rotation driving mechanism 52, where the rotation driving mechanism 52 is configured to drive the switch member 51 to switch between the first state and the second state, the switch member 51 has a first state and a second state on a moving stroke thereof, and when the electronic device is in the external release mode, the switch member 51 rotates to the first state, that is, the switch member 51 is located at a connection position between the second sound hole 12 and the rear cavity 14, so that the rear cavity 14 is spaced from the second sound hole 12, the second sound hole 12 is communicated with the front cavity 13, and at this time, sound waves emitted by the second sound hole 12 and the first sound hole 11 are both from the front cavity 13. When the electronic device is in the earphone mode, the switch member 51 rotates to the second state, the switch member 51 opens the connection part between the second sound hole 12 and the rear cavity 14, so that the rear cavity 14 is communicated with the second sound hole 12, at this time, the second sound hole 12 is spaced from the front cavity 13, at this time, the sound wave emitted by the second sound hole 12 comes from the rear cavity 14, the sound wave emitted by the first sound hole 11 comes from the front cavity 13, and the phases of the two sound waves are opposite, so as to realize the sound dipole effect, and reduce the sound leakage of the electronic device 100 in the earphone mode.
Still further, in the embodiment of the present invention, as shown in fig. 5 to 9, the second sound hole 12 is further communicated with the front cavity 13 at the junction with the rear cavity 14, and in the first state, the switch member 51 is located at the junction between the second sound hole 12 and the rear cavity 14 so that the second sound hole 12 is spaced apart from the rear cavity 14 and is communicated with the front cavity 13, and in the second state, the switch member 51 is moved to the junction between the second sound hole 12 and the front cavity 13 so that the second sound hole 12 is communicated with the rear cavity 14 and is spaced apart from the front cavity 13, and in the first state, the second sound hole 12 also plays a role of sounding.
In the embodiment of the present invention, the rotation driving mechanism 52 is used to drive the switching member 51 to rotate, the specific configuration of the rotation driving mechanism 52 is not limited, and the motor may directly drive the switching member 51, or other components may be added, in the embodiment of the present invention, the rotation driving mechanism 52 includes a motor 521 and a reducer 522, the motor 521 is connected with an input shaft of the reducer 522, and an output shaft of the reducer 522 is connected with a rotating shaft of the switching member 51, so that the driving of the switching member 51 may be achieved.
The sound pickup unit 3 may be an additionally provided sound pickup element or may be self-contained in the electronic device 100, and in the embodiment of the present invention, the sound pickup unit 3 is a microphone self-contained in the electronic device 100.
The control device 4 may be independent or may be part of the electronic apparatus 100, and in this embodiment, the control device 4 is part of the electronic apparatus 100.
Based on the above-mentioned structure, fig. 4 is a schematic diagram of an embodiment of a control method of an electronic device 100 according to the present invention, referring to fig. 4, the control method of the electronic device 100 includes:
step S10, acquiring a sound emitting mode of the electronic equipment 100;
The sound emitting mode of the electronic device 100 includes an earpiece mode in which it is desired that the sound emitted by the electronic device 100 is heard only by the user and is leaked to the surrounding environment as little as possible, and a play mode in which it is desired that the sound is better conducted to the surrounding environment.
Step S20, when the sound emitting mode of the electronic device 100 is the earpiece mode, controlling the second sound hole 12 to communicate with the rear cavity 14, where the first sound hole 11 and the sound wave emitted by the second sound hole 12 form a sound dipole, and at the same time, the control device 4 obtains a real-time sound signal collected by the sound pickup unit 3;
when the sound emitting mode of the electronic device 100 is the earpiece mode, the real-time sound signal needs to be collected by the sound pickup unit 3, where the real-time sound signal includes an environmental noise signal of an environment where the electronic device 100 is located and an echo signal of sound emitted by the electronic device 100, where the echo signal is a reflected wave formed by the sound waves emitted from the first sound hole 11 and the second sound hole 12 of the electronic device 100 after being converged and passing through an obstacle, and it is obvious that the echo signal is different from the sound wave signal actually emitted from the first sound hole 11.
Step S30, according to the real-time sound signal, acquiring an environmental noise signal value of the environment where the electronic device 100 is located and an echo signal value generated by the electronic device 100;
when the real-time sound signal is received, the environmental noise signal value of the environment where the electronic device 100 is located and the echo signal value generated by the electronic device 100 can be obtained, and specifically, how to separate the real-time sound signal into the environmental noise signal and the echo signal can be completed by adopting the prior art, which is not described herein.
Step S40, adjusting the volume of the sound generating unit 2 according to the environmental noise signal value, the echo signal value, and the current volume value of the sound generating unit 2.
The echo signal value is a sound signal reflecting the electronic device 100 conducted to the environment, that is, a sound signal obtained by combining sound waves emitted from the first sound hole 11 and the second sound hole 12 of the electronic device 100, that is, a sound level emitted from the electronic device 100 heard in the environment, and the current volume value of the sound emitting unit 2 is a sound level at the first sound hole 11, that is, a sound level heard by the user when the user approaches the first sound hole 11 in the earpiece mode, so that the sound level of the sound emitting unit 2 can be adjusted according to the environmental noise signal value, the echo signal value, and the current sound level of the sound emitting unit 2, on one hand, the echo signal value is smaller when the current sound level of the sound emitting unit 2 is enough, that is, the user can clearly hear the sound signal, and the sound signal leaked to the environment is smaller.
Further, in the embodiment of the present invention, on the premise that the electronic device 100 further includes a switching mechanism for controlling the switching of the second sound hole 12, the step S20 includes:
step S21, when the sound emitting mode of the electronic device 100 is the earpiece mode, controlling the switching mechanism 5 to switch to the second state;
step S22, when the second sound hole 12 is communicated with the rear cavity 14, acquiring a real-time sound signal acquired by the sound pickup unit 3;
After step S10, further includes:
step S50, when the play mode of the electronic device 100 is the play mode, controlling the switching mechanism 5 to switch to the first state.
That is, in the case where the switching mechanism is present, the switching mechanism may be controlled to switch to the second state in the earpiece mode, so that the sound wave of the first sound hole 11 and the sound wave of the second sound hole 12 may form a dipole effect for the user in the surrounding environment, and for this reason, when the sound emitting mode of the electronic device 100 is the earpiece mode, the sound leakage may be reduced, and it is obvious that the second sound hole 12 is always open for the scheme where the switching mechanism is not provided. And for the external mode, the noise elimination effect caused by the existence of the second sound hole 12 and the first sound hole 11 is avoided, and the switching mechanism 5 is controlled to switch to the first state, so that the first sound hole 11 and the second sound hole 12 are communicated with the front cavity 13, and the sound is enough in the external mode.
In an embodiment of the present invention, step S40 includes:
Step S40a, adjusting the volume of the sound generating unit 2 according to the echo signal value and the magnitude relation between the current volume value of the sound generating unit 2 and the ambient noise signal value.
That is, in the embodiment of the present invention, the user cannot hear the sound of the first sound hole 11 of the electronic device, not only depending on the volume at the first sound hole 11, but also related to the noise of the environment, for example, when the environmental noise is small, the user can hear the sound of the smaller first sound hole 11, and when the environmental noise is large, the user needs the sound of the larger first sound hole 11 to hear the sound, and likewise, in the surrounding environment, the sound of the electronic device 100 cannot hear (i.e., the sound cannot leak clearly), and is not completely dependent on the echo signal value, and related to the surrounding environmental noise, for this reason, in the embodiment of the present invention, the volume of the sound generating unit 2 is adjusted according to the volume relationship between the echo signal value and the current volume value of the sound generating unit 2 and the environmental noise signal value, and the adjusting effect thereof is more accurate.
Specifically, in the embodiment of the present invention, step S40a includes:
step S41, dividing the echo signal value by the ambient noise signal value to obtain a first ratio, and dividing the current volume value of the sounding unit 2 by the ambient noise signal value to obtain a second ratio;
Step S42, adjusting the volume of the sounding unit according to a first ratio and a second ratio, wherein the first set ratio and the second set ratio are empirical values or experimentally measured values, the first set ratio is the ratio between an echo signal value and an environmental noise signal value when the environmental noise influences the listening of echoes, and the second set ratio is the ratio between the current volume value and the environmental noise signal value when the environmental noise influences the listening of sounds emitted by the sounding unit;
That is, in an embodiment of the present invention, the volume of the sound generating unit is controlled and adjusted by the ratio of the echo signal value to the ambient noise signal value and the ratio of the current volume value of the sound generating unit 2 to the ambient noise signal value, and when one of the ratio is larger, the influence of the noise on the respective sound is indicated to be larger, otherwise, the influence is smaller, and obviously, the present design is not limited to this, and the volume of the sound generating unit may also be adjusted by the difference value between the echo signal value and the ambient noise signal value and the difference value between the current volume value of the sound generating unit 2 and the ambient noise signal value.
Further, in the embodiment of the present invention, step S42 includes:
step S421, comparing the first ratio with a first set ratio, and comparing the second ratio with a second set ratio;
Step S422, when the first ratio is greater than the first set ratio and the second ratio is greater than the second set ratio, the volume of the sounding unit 2 is reduced;
step S423, increasing the volume of the sound generating unit 2 when the first ratio is smaller than the first set ratio and the second ratio is smaller than the second set ratio.
In this embodiment, by comparing the first ratio with the second ratio with the first set ratio and the second preset value, respectively, it can be determined according to the comparison result that the environmental noise affects the echo signal and the sound at the first sound hole 11, so as to control the volume of the sound generating unit according to the effect result, to ensure that the sound cannot leak, and meanwhile, the user can hear the sound at the first sound hole 11 more clearly.
Further, in the embodiment of the present invention, after step S421, the method further includes:
step S424, when the first ratio is greater than the first set ratio and the second ratio is smaller than
When the second set ratio is set, the volume of the sounding unit 2 is reduced, so that the first ratio reaches the first set ratio;
when the leakage contradicts the sound heard by the user, the leakage can be preferentially reduced, and of course, in other embodiments, the sound heard by the user can be preferentially ensured.
In step S425, when the first ratio is smaller than the first set ratio and the second ratio is larger than the second set ratio, the sound generating unit 2 is controlled to maintain the current sound volume value.
When the leakage is well controlled and the user hears louder, the current volume can not be adjusted.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a television, or a network device, etc.) to perform the method of the embodiments of the present invention.
The foregoing description of the preferred embodiments of the present invention should not be construed as limiting the scope of the invention, but rather as utilizing equivalent structural changes made in the description of the present invention and the accompanying drawings or directly/indirectly applied to other related technical fields under the inventive concept of the present invention.
Claims (10)
1. The volume control method is applied to electronic equipment and is characterized by comprising a shell, a sound generating unit, a sound pickup unit and a control device electrically connected with the sound generating unit and the sound pickup unit, wherein the sound generating unit is arranged in the shell and is matched with the shell to define a sound cavity, a first sound hole and a second sound hole which are communicated with the sound cavity are arranged on the shell, the sound cavity comprises a front cavity and a rear cavity, the first sound hole is communicated with the front cavity, the second sound hole is switchably communicated with the front cavity or the rear cavity, and the volume control method comprises the following steps:
acquiring a sound emitting mode of the electronic equipment;
When the electronic equipment is in a receiver mode, the second sound hole is controlled to be communicated with the rear cavity, sound waves with opposite phases are emitted by the first sound hole and the second sound hole, and meanwhile, the control device acquires real-time sound signals acquired by the sound pickup unit;
According to the real-time sound signal, acquiring an environmental noise signal value of the environment where the electronic equipment is located and an echo signal value generated by the electronic equipment;
and adjusting the volume of the sounding unit according to the environmental noise signal value, the echo signal value and the current volume value of the sounding unit.
2. The method of volume control of claim 1, wherein the electronic device further comprises a switching mechanism movably coupled to the housing, the switching mechanism having a first state in which the second sound aperture is in communication with the front cavity and a second state in which the second sound aperture is in communication with the rear cavity;
When the electronic equipment is in the receiver mode, the step of acquiring the real-time sound signal acquired by the sound pickup unit comprises the following steps:
when the electronic equipment is in the earphone mode, the switching mechanism is controlled to be switched to the second state;
when the second sound hole is communicated with the rear cavity, acquiring a real-time sound signal acquired by the sound pickup unit;
After the step of obtaining the sound emitting mode of the electronic device, the method further comprises the following steps:
and when the electronic equipment is in the play mode, controlling the switching mechanism to switch to the first state.
3. The volume control method according to claim 1 or 2, wherein the step of adjusting the volume of the sound generating unit according to the ambient noise signal value, the echo signal value, and the current volume value of the sound generating unit comprises:
And adjusting the volume of the sound generating unit according to the echo signal value and the magnitude relation between the current volume value of the sound generating unit and the environmental noise signal value.
4. A volume control method as claimed in claim 3, wherein the step of adjusting the volume of the sound generating unit according to the echo signal value and the magnitude relation between the current volume value of the sound generating unit and the ambient noise signal value comprises:
Dividing the echo signal value by the ambient noise signal value to obtain a first ratio, and dividing a current volume value of the sound generating unit by the ambient noise signal value to obtain a second ratio;
And adjusting the volume of the sound generating unit according to the first ratio and the second ratio.
5. The method of volume control of claim 4, wherein the step of adjusting the volume of the sound generating unit according to the first ratio and the second ratio comprises:
comparing the first ratio with a first set ratio, and comparing the second ratio with a second set ratio, wherein the first set ratio is a ratio between an echo signal value and an environmental noise signal value when the environmental noise influences the hearing of the echo, and the second set ratio is a ratio between a current sound value and the environmental noise signal value when the environmental noise influences the hearing of the sound emitted by the sounding unit;
When the first ratio is larger than the first set ratio and the second ratio is larger than the second set ratio, reducing the volume of the sounding unit;
And when the first ratio is smaller than the first set ratio and the second ratio is smaller than the second set ratio, increasing the volume of the sounding unit.
6. The method of volume control of claim 4, further comprising, after the step of comparing the first ratio to the first set ratio and the second ratio to the second set ratio:
When the first ratio is larger than the first set ratio and the second ratio is smaller than the second set ratio, reducing the volume of the sounding unit so that the first ratio reaches the first set ratio;
and when the first ratio is smaller than the first set ratio and the second ratio is larger than the second set ratio, controlling the sounding unit to keep at the current sound volume value.
7. An electronic device, comprising:
The sound generating device comprises a shell, wherein a sound generating unit and a sound pickup unit are arranged in the shell, the sound generating unit is matched with the shell to define a sound cavity, a first sound hole and a second sound hole which are communicated with the sound cavity are arranged on the shell, the sound cavity comprises a front cavity and a rear cavity, the first sound hole is communicated with the front cavity, and the second sound hole is switchably communicated with the front cavity or the rear cavity;
And a control device electrically connected to the sound generating unit and the sound pickup unit, the control device including a memory, a processor, and a control program of the electronic device stored in the memory, the processor executing the control program of the electronic device to implement the steps of the volume control method according to any one of claims 1 to 6.
8. The electronic device of claim 7, wherein the housing has a front face provided with a display portion, a back face disposed opposite the front face, and a top side face between the back face and the front face;
The first sound hole is arranged on the front surface of the shell or the joint of the front surface and the top side surface;
the second sound hole is arranged on the back surface, the top side surface or the joint of the back surface and the top side surface.
9. The electronic device of claim 7, wherein the electronic device further comprises:
The switching mechanism is movably connected with the shell, and has a first state and a second state, the second sound hole is communicated with the front cavity in the first state, and the second sound hole is communicated with the rear cavity in the second state;
the control device is also electrically connected with the switching mechanism.
10. The electronic device of claim 9, wherein the switching mechanism comprises a movably disposed switch member having one end rotatably mounted within the housing;
the switch also comprises a rotation driving mechanism, wherein the rotation driving mechanism is used for driving the switch piece to switch between the first state and the second state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210317021.0A CN114900579B (en) | 2022-03-28 | 2022-03-28 | Electronic equipment and volume control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210317021.0A CN114900579B (en) | 2022-03-28 | 2022-03-28 | Electronic equipment and volume control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114900579A CN114900579A (en) | 2022-08-12 |
CN114900579B true CN114900579B (en) | 2024-07-02 |
Family
ID=82715823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210317021.0A Active CN114900579B (en) | 2022-03-28 | 2022-03-28 | Electronic equipment and volume control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114900579B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924828A (en) * | 2010-07-21 | 2010-12-22 | 惠州Tcl移动通信有限公司 | Mobile terminal, method and device for adjusting volume thereof |
CN108124223A (en) * | 2016-11-28 | 2018-06-05 | 深圳市新泽宇音响科技有限公司 | Variable louvered guided wave speaker and its guided wave method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111182118B (en) * | 2020-01-03 | 2021-05-25 | 维沃移动通信有限公司 | Volume adjusting method and electronic equipment |
CN112887459B (en) * | 2021-01-22 | 2023-09-22 | 维沃移动通信有限公司 | Electronic equipment |
CN112929769B (en) * | 2021-01-27 | 2022-06-28 | 歌尔科技有限公司 | Audio equipment and intelligent wearable equipment |
CN113504663B (en) * | 2021-07-23 | 2023-04-25 | 歌尔科技有限公司 | Sound production module, sound production module silencing method and intelligent glasses |
CN113784244B (en) * | 2021-08-31 | 2023-07-25 | 歌尔科技有限公司 | Open field far-field sound-deadening horn device, head-mounted equipment and signal processing method |
CN113747326A (en) * | 2021-09-29 | 2021-12-03 | 歌尔光学科技有限公司 | Sound production device, control method thereof, and control device |
CN113993042B (en) * | 2021-09-29 | 2024-06-04 | 歌尔科技有限公司 | Sound generating device, control method thereof and control device |
-
2022
- 2022-03-28 CN CN202210317021.0A patent/CN114900579B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924828A (en) * | 2010-07-21 | 2010-12-22 | 惠州Tcl移动通信有限公司 | Mobile terminal, method and device for adjusting volume thereof |
CN108124223A (en) * | 2016-11-28 | 2018-06-05 | 深圳市新泽宇音响科技有限公司 | Variable louvered guided wave speaker and its guided wave method |
Also Published As
Publication number | Publication date |
---|---|
CN114900579A (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1939090B (en) | Handheld device loudspeaker system | |
US20180350381A1 (en) | System and method of noise reduction for a mobile device | |
US20080175408A1 (en) | Proximity filter | |
US20050136848A1 (en) | Multi-mode audio processors and methods of operating the same | |
JP2008503983A (en) | Method and apparatus for improved mobile station and hearing aid compatibility | |
CN110913062B (en) | Audio control method, device, terminal and readable storage medium | |
US20100098266A1 (en) | Multi-channel audio device | |
WO2004093488A2 (en) | Directional speakers | |
CN115482830B (en) | Voice enhancement method and related equipment | |
CN112291672B (en) | Speaker control method, control device and electronic equipment | |
CN117480554A (en) | Voice enhancement method and related equipment | |
CN114900579B (en) | Electronic equipment and volume control method | |
CN107396237B (en) | Self-positioning intelligent sound box | |
CN113993042B (en) | Sound generating device, control method thereof and control device | |
CN114650335B (en) | Electronic equipment and volume control method | |
KR102650763B1 (en) | Psychoacoustic enhancement based on audio source directivity | |
JP3541673B2 (en) | Telephone equipment | |
CN111243615B (en) | Microphone array signal processing method and handheld device | |
CN113766402B (en) | Hearing aid method and device for improving environmental adaptability | |
KR101450095B1 (en) | Real-time location tracking ultrasound device using automatic volume control system | |
US9998819B2 (en) | Audio layer in keyboard device providing enhanced audio performance | |
CN118283163A (en) | Control method of electronic equipment, electronic equipment and storage medium | |
US9729960B1 (en) | Audio layer in keyboard device providing enhanced audio performance | |
KR20060038001A (en) | Personal portable device | |
CN117319889A (en) | Audio signal processing method and device, electronic equipment and storage medium |
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 |