CN107765891B - Microphone control method and microphone - Google Patents

Microphone control method and microphone Download PDF

Info

Publication number
CN107765891B
CN107765891B CN201710980667.6A CN201710980667A CN107765891B CN 107765891 B CN107765891 B CN 107765891B CN 201710980667 A CN201710980667 A CN 201710980667A CN 107765891 B CN107765891 B CN 107765891B
Authority
CN
China
Prior art keywords
microphone
user
communication connection
electronic device
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710980667.6A
Other languages
Chinese (zh)
Other versions
CN107765891A (en
Inventor
梁金宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201710980667.6A priority Critical patent/CN107765891B/en
Publication of CN107765891A publication Critical patent/CN107765891A/en
Application granted granted Critical
Publication of CN107765891B publication Critical patent/CN107765891B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/08Mouthpieces; Microphones; Attachments therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Abstract

A microphone control method and a microphone comprise the following steps: detecting whether the microphone in an opening state is in communication connection with the electronic equipment; if the microphone is in communication connection with the electronic equipment, detecting whether a user approaches the microphone; and if the user does not exist close to the microphone, disconnecting the communication connection between the microphone and the electronic equipment. By implementing the embodiment of the invention, the microphone can be automatically turned on or turned off, the additionally consumed electric quantity of the electronic equipment connected with the microphone is reduced, and the electric quantity of the electronic equipment is saved.

Description

Microphone control method and microphone
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a microphone control method and a microphone.
Background
At present, many electronic devices (such as an early education machine or a karaoke video machine) are provided with a microphone peripheral, but switches of the microphones are usually arranged on the microphones in a physical key mode, and people can turn on or off the microphones according to specific requirements. In practice, it is found that people often forget to turn off the microphone after using the microphone, which causes the electronic device to consume extra power when the microphone is not used, and causes the electronic device to consume serious power.
Disclosure of Invention
The embodiment of the invention discloses a microphone control method and a microphone, which can automatically turn on or off the microphone, reduce the extra consumed electric quantity of electronic equipment connected with the microphone and save the electric quantity of the electronic equipment.
The first aspect of the embodiments of the present invention discloses a method for controlling a microphone, including:
detecting whether the microphone in an opening state is in communication connection with the electronic equipment;
if the microphone in the opening state is in communication connection with the electronic equipment, detecting whether a user approaches the microphone;
and if the user does not exist close to the microphone, disconnecting the communication connection between the microphone and the electronic equipment.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
measuring, by a gravity sensor, whether the microphone generates acceleration due to gravity if there is a user approaching the microphone;
if the microphone generates acceleration caused by gravity, judging whether the acceleration is smaller than a preset acceleration threshold value of the microphone; wherein the preset acceleration threshold is set based on an average acceleration generated by the microphone when the microphone is used by a dedicated user of the microphone;
and if the acceleration is smaller than a preset acceleration threshold value of the microphone, determining that the sound collection function of the microphone is not started, and executing the disconnection of the communication connection between the microphone and the electronic equipment.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
if the acceleration is larger than or equal to a preset acceleration threshold value of the microphone, determining that a sound collection function of the microphone is started, and detecting whether voice input exists or not through the sound collection function of the microphone;
if the voice input does not exist through the sound collection function of the microphone, recording the target duration that the voice input is not detected through the sound collection function of the microphone;
judging whether the target time length is greater than a preset time length or not; the preset time length is set according to the average voice input interval time length of an exclusive user of the microphone when the microphone is used;
and if the target duration is longer than the preset duration, executing the disconnection of the communication connection between the microphone and the electronic equipment.
As an optional implementation manner, in the first aspect of this embodiment of the present invention, the method further includes:
if the voice input is detected to exist through the sound collecting function of the microphone, identifying whether the characteristic information of the voice is matched with the characteristic information of the voice of the exclusive user of the microphone;
if the user identification information is not matched with the user identification information, sending a notification message which comprises the identification of the exclusive user of the microphone and prompt information for prompting that the microphone is being illegally used to the electronic equipment, so that the electronic equipment identifies the user equipment of the exclusive user of the microphone according to the identification of the exclusive user of the microphone, and the electronic equipment sends the prompt information for prompting that the microphone is being illegally used to the user equipment of the exclusive user of the microphone;
detecting whether a user instruction which is sent by the electronic equipment and used for indicating to disconnect the communication connection between the microphone and the electronic equipment is received; wherein the user instruction is sent to the electronic device by a user device of a dedicated user of the microphone;
if yes, the communication connection between the microphone and the electronic equipment is disconnected.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, the prompt information further includes instant location information of the microphone.
A second aspect of an embodiment of the present invention discloses a microphone, including:
the first detection unit is used for detecting whether the microphone in the opening state is in communication connection with the electronic equipment or not;
the second detection unit is used for detecting whether a user approaches the microphone or not when the first detection unit detects that the microphone in the opening state is in communication connection with the electronic equipment;
and the closing unit is used for disconnecting the communication connection between the microphone and the electronic equipment when the second detection unit detects that no user approaches the microphone.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
a measuring unit for measuring whether the microphone generates acceleration due to gravity by a gravity sensor when the second detecting unit detects that there is a user approaching the microphone;
the first judgment unit is used for judging whether the acceleration is smaller than a preset acceleration threshold value of the microphone or not when the measurement unit measures the acceleration of the microphone caused by gravity through the gravity sensor; wherein the preset acceleration threshold is set based on an average acceleration generated by the microphone when the microphone is used by a dedicated user of the microphone;
the determining unit is used for determining that the sound collecting function of the microphone is not started when the first judging unit judges that the acceleration is smaller than the preset acceleration threshold of the microphone;
the closing unit is specifically configured to disconnect a communication connection between the microphone and the electronic device when the second detecting unit detects that a user approaches the microphone and the determining unit determines that the sound collecting function of the microphone is not turned on.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
the determining unit is further configured to determine that a sound collecting function of the microphone is turned on when the first judging unit judges that the acceleration is greater than or equal to a preset acceleration threshold of the microphone;
a third detecting unit for detecting whether there is a voice input through the sound collecting function of the microphone;
a recording unit configured to record a target duration in which the voice input is not detected by the sound collection function of the microphone when the third detection unit detects that the voice input does not exist;
the second judgment unit is used for judging whether the target time length is greater than a preset time length or not; the preset time length is set according to the average voice input interval time length of an exclusive user of the microphone when the microphone is used;
the closing unit is specifically configured to disconnect a communication connection between the microphone and the electronic device when the second detecting unit detects that a user approaches the microphone, the determining unit determines that the sound collecting function of the microphone is turned on, and the second judging unit judges that the target duration is longer than the preset duration.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the method further includes:
the recognition unit is used for recognizing whether the feature information of the voice is matched with the feature information of the voice of the exclusive user of the microphone or not when the third detection unit detects that the voice input exists through the sound collection function of the microphone;
a sending unit, configured to send, when the recognition unit recognizes that the feature information of the voice does not match the feature information of the voice of the dedicated user of the microphone, a notification message including an identity of the dedicated user of the microphone and a prompt message for prompting that the microphone is being illegally used to the electronic device, so that the electronic device recognizes, according to the identity of the dedicated user of the microphone, the user equipment of the dedicated user of the microphone, and sends, by the electronic device, the prompt message for prompting that the microphone is being illegally used to the user equipment of the dedicated user of the microphone;
the third detection unit is further configured to detect whether a user instruction sent by the electronic device and used for instructing to disconnect the communication connection between the microphone and the electronic device is received; wherein the user instruction is sent to the electronic device by a user device of a dedicated user of the microphone;
the closing unit is specifically configured to disconnect the communication connection between the microphone and the electronic device when the second detecting unit detects that there is a user approaching the microphone, the determining unit determines that the sound collecting function of the microphone is turned on, the third detecting unit detects that there is the voice input through the sound collecting function of the microphone, and the third detecting unit detects that a user instruction for instructing to disconnect the communication connection between the microphone and the electronic device is received, where the user instruction is sent by the electronic device.
As an optional implementation manner, in the second aspect of the embodiment of the present invention, the prompt information further includes instant location information of the microphone.
A third aspect of an embodiment of the present invention discloses a microphone, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the microphone control method disclosed by the first aspect of the embodiment of the invention.
A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium that stores a computer program, the computer program causing a computer to execute the method for controlling a microphone disclosed in the first aspect of the embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, under the condition that the microphone is turned on, when the microphone connected with the electronic equipment detects that the microphone is not used by a user, the microphone is automatically turned off, so that the microphone can be automatically turned off when the microphone is not used by the user, and the electric quantity is saved. Therefore, by implementing the embodiment of the invention, the microphone can be automatically controlled to be turned on or turned off according to the actual microphone using condition of the user, the extra consumed electric quantity of the electronic equipment is reduced, and the electric quantity of the electronic equipment is saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a microphone control method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another method for controlling a microphone according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another microphone control method according to the embodiment of the present invention;
fig. 4 is a flow chart illustrating a method for controlling a microphone according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a microphone according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another microphone disclosed in the embodiments of the present invention;
fig. 7 is a schematic structural diagram of another microphone disclosed in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of another microphone disclosed in the embodiment of the present invention;
fig. 9 is a schematic structural diagram of another microphone disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a microphone control method and a microphone, which can automatically turn on or off the microphone, reduce the extra consumed electric quantity of electronic equipment connected with the microphone and save the electric quantity of the electronic equipment. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for controlling a microphone according to an embodiment of the present invention. As shown in fig. 1, the method for controlling a microphone may include the steps of:
101. the microphone detects whether the microphone in the opening state is in communication connection with the electronic equipment, if so, step 102 is executed; if not, the flow is ended.
In this embodiment of the present invention, the microphone may be a wired microphone or a wireless microphone, and the embodiment of the present invention is not limited thereto. When this microphone is wireless microphone, this microphone can be connected with electronic equipment through connecting the wifi network, also can be connected with electronic equipment through the bluetooth, detects whether communication connection of this microphone and electronic equipment when the microphone is in the open mode through the microphone, when this microphone and electronic equipment communication connection, just can determine this electronic equipment is in the open mode, this moment this microphone just can carry out data transmission through the relation of connection with this electronic equipment.
As an alternative embodiment, the microphone has a function of outputting sound and a function of storing collected sound, when the detection result in step 101 is negative, the microphone may store the sound input to the microphone by the function of storing the collected sound, and play the sound input to the microphone through a speaker installed on the microphone, the microphone detects the volume value of the played sound after the playing is finished, and when the volume value is detected to be beyond the normal range of the acceptable volume of human ears, a reminding notice is sent out, to alert the user that the current volume has been detrimental to the hearing of the human ear, that the volume should be reduced, and to automatically reduce the volume to within the normal range of acceptable volume for the human ear, the reminding notification can be realized by suddenly interrupting the playing sound and interrupting the playing sound for at least one second through the microphone. The implementation mode is suitable for children, and for the children, the children cannot realize that the hearing is damaged due to too much sound when using the microphone, at the moment, the microphone is needed to remind and automatically reduce the volume, so that the purpose of protecting the hearing of the children is achieved, and parents can feel relieved about the microphone being used by the children alone.
Optionally, after the microphone stores the sound input into the microphone, if the microphone detects that the microphone is in communication connection with the electronic device, the sound information stored in the microphone is sent to the electronic device connected with the microphone, and the sound information sent by the electronic device can be received and played by using a speaker on the microphone, so that the functions of the microphone can be enriched, and the interactivity between the microphone and the electronic device can be enhanced.
102. The microphone detects whether a user approaches the microphone, if not, step 103 is executed; if so, the flow ends.
In the embodiment of the present invention, a human body sensor is installed in the microphone, where the human body sensor may be an infrared human body sensor, a human body proximity sensor, or a microwave human body sensor, and the embodiment of the present invention is not limited.
As an alternative implementation, when the detection result in step 102 is yes, the microphone may further perform the following steps:
calculating a distance between the user and the microphone;
judging whether the distance value is smaller than a preset distance threshold value, wherein the preset distance threshold value is set according to an average distance value between an exclusive user of the microphone and the microphone when the exclusive user uses the microphone;
if the distance value is smaller than a preset distance threshold value, judging whether voice input for starting a sound collecting function of the microphone exists or not;
and if not, disconnecting the communication connection between the microphone and the electronic equipment.
Therefore, when the method is implemented by the above embodiment, it can be further determined whether the user inputs the voice for turning on the sound collecting function of the microphone when the user is determined that the microphone is close to the microphone, and when the user inputs the voice, it is determined that the microphone is used by the user, the microphone continues to be turned on.
103. The microphone disconnects the communication connection between the microphone and the electronic device.
In the embodiment of the invention, the microphone is disconnected from the communication connection between the microphone and the electronic equipment so that the microphone does not waste the electric quantity of the electronic equipment in communication connection with the microphone any more, and after the microphone is disconnected from the communication connection between the microphone and the electronic equipment, the microphone is in a closed state so as to achieve the purpose of saving the electric quantity of the microphone, and meanwhile, the microphone can not generate interference on sound equipment around the microphone when not used by a user, so that the generation of noise is reduced.
Therefore, by implementing the method described in fig. 1, it is possible to detect whether there is a communication connection relationship with the electronic device when the microphone is in the on state, and then determine whether there is a person to use the microphone, and when no person uses the microphone, the communication connection relationship between the microphone and the electronic device is disconnected, so that the occurrence of the situation that the microphone is still in the on state when no person uses the microphone can be reduced, and the purpose of saving the electric quantity of the microphone and the electric quantity of the electronic device in communication connection with the microphone is achieved, so that the electronic device does not need to generate extra electric power consumption, and the service life of the electronic device is further prolonged.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another microphone control method according to an embodiment of the present invention. As shown in fig. 2, the method for controlling the microphone may include the steps of:
step 201 to step 202, wherein the detailed description of step 201 to step 202 refers to the description of step 101 to step 102 in the first embodiment, which is not repeated in this embodiment.
203. The microphone measures whether the microphone generates acceleration caused by gravity through a gravity sensor, if so, step 204 is executed; if not, step 206 is performed.
In the embodiment of the present invention, a gravity sensor is installed in a microphone, and the microphone measures whether the microphone generates acceleration due to gravity through the gravity sensor, so as to enable the microphone to determine whether a user has an operation on the microphone, where the operation may be that the user picks up the microphone quickly when the microphone is in a static state, or that the user holds the microphone to shake, and the embodiment of the present invention is not limited.
204. The microphone judges whether the acceleration is smaller than a preset acceleration threshold value of the microphone, if so, the step 205 to the step 206 are executed; if not, the flow is ended.
In an embodiment of the present invention, the preset acceleration threshold is set based on an average acceleration generated by the microphone when the microphone is used by a dedicated user of the microphone.
As an alternative implementation, when the determination result in step 204 is no, the microphone may further perform the following steps: the microphone judges whether pressure is applied to the microphone through a pressure sensor installed on the microphone; if the pressure value exists, the microphone judges whether the pressure is smaller than a preset pressure threshold value, wherein the preset pressure threshold value is set according to an average pressure value applied to the microphone when the microphone is used by a special user of the microphone; if the pressure is less than the preset pressure threshold, the microphone determines that the microphone is not held by the user.
Optionally, when it is determined that the microphone is not held by the user, indicating that the microphone is not used by the user, step 206 is further performed, and when the embodiment is implemented as described above, it may be determined whether the microphone is held by the user by detecting the pressure value applied to the microphone, and further, when it is determined that the microphone is not held by the user, indicating that the microphone is not used by the user. If the microphone and the electronic equipment are used in a matched manner, some shaking may exist in the process of transporting the microphone and the electronic equipment when a small team needs to go to field activities, so that the microphone generates acceleration caused by gravity, the microphone may be kept in an open state continuously, and the electric quantity is wasted, but the situation can be reduced by detecting the pressure applied to the microphone after the acceleration is detected, so that whether a person uses the microphone can be accurately judged by the microphone, the microphone can save the electric quantity, the consumption of extra electric quantity of the electronic equipment in communication connection with the microphone can be reduced, the electric consumption is reduced, the service life of the electronic equipment is prolonged, and the probability of the situation that the activities are influenced by the fact that the electronic equipment is out of power is reduced.
205. The microphone determines that the sound collection function of the microphone is not turned on.
206. The microphone disconnects the communication connection between the microphone and the electronic device.
In the embodiment of the invention, the microphone is disconnected from the communication connection between the microphone and the electronic equipment so that the microphone does not waste the electric quantity of the electronic equipment in communication connection with the microphone any more, and after the microphone is disconnected from the communication connection between the microphone and the electronic equipment, the microphone is in a closed state so as to achieve the purpose of saving the electric quantity of the microphone, and meanwhile, the microphone can not generate interference on sound equipment around the microphone when not used by a user, so that the generation of noise is reduced.
It can be seen that, by implementing the method described in fig. 2, the microphone can be enabled to be in an on state by detecting whether a communication connection relationship exists with the electronic device, and then determining whether a person wants to use the microphone, when no person uses the microphone, the communication connection relationship between the microphone and the electronic device is disconnected, so that the occurrence of the situation that the microphone is still in an on state when no person uses the microphone can be reduced, and the purpose of saving the electric quantity of the microphone and the electric quantity of the electronic device in communication connection with the microphone can be achieved, so that the electronic device does not need to generate extra electric power consumption, the service time of the electronic device is further prolonged, in addition, when a user approaches the microphone, whether the microphone is further detected by the gravity sensor whether the user inputs an instruction for turning on the sound collection function, if so, and if not, determining that the microphone is not used by the user, automatically closing the microphone to save electric quantity, and enabling the microphone to be controlled to be opened or closed more accurately, so that the user can use the microphone more conveniently.
EXAMPLE III
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for controlling a microphone according to another embodiment of the present invention. As shown in fig. 3, the method for controlling the microphone may include the steps of:
step 301 to step 303, wherein the detailed description of step 301 to step 303 refers to the description of step 201 to step 203 in embodiment two, and the embodiments of the present invention are not described again.
304. The microphone judges whether the acceleration is smaller than a preset acceleration threshold value of the microphone, if not, the step 305 to the step 306 are executed; if so, step 309-step 310 are performed.
In an embodiment of the present invention, the preset acceleration threshold is set based on an average acceleration generated by the microphone when the microphone is used by a dedicated user of the microphone.
As an alternative implementation, when the determination result in step 204 is no, the microphone may further perform the following steps:
the microphone judges whether pressure is applied to the microphone through a pressure sensor installed on the microphone; if the pressure value is smaller than the preset pressure threshold value, the microphone judges whether the pressure value is smaller than the preset pressure threshold value, wherein the preset pressure threshold value is set according to an average pressure value applied to the microphone when the microphone is used by a special user of the microphone; if the pressure is less than the preset pressure threshold, the microphone determines that the microphone is not held by the user.
Optionally, when it is determined that the microphone is not held by the user, indicating that the microphone is not used by the user, step 206 is further performed, and when the embodiment is implemented as described above, it may be determined whether the microphone is held by the user by detecting the pressure value applied to the microphone, and further, when it is determined that the microphone is not held by the user, indicating that the microphone is not used by the user. If the microphone and the electronic equipment are used in a matched manner, some shaking may exist in the process of transporting the microphone and the electronic equipment when a small team needs to go to field activities, so that the microphone generates acceleration caused by gravity, the microphone may be kept in an open state continuously, and the electric quantity is wasted, but the situation can be reduced by detecting the pressure applied to the microphone after the acceleration is detected, so that whether a person uses the microphone can be accurately judged by the microphone, the microphone can save the electric quantity, the consumption of extra electric quantity of the electronic equipment in communication connection with the microphone can be reduced, the electric consumption is reduced, the service life of the electronic equipment is prolonged, and the probability of the situation that the activities are influenced by the fact that the electronic equipment is out of power is reduced.
305. The microphone determines that the sound collection function of the microphone is turned on.
306. The microphone detects whether voice input exists or not through the sound collection function of the microphone, and if not, the step 307 to the step 308 are executed; if so, the flow ends.
In the embodiment of the invention, when voice input exists in the microphone, the diaphragm in the microphone is vibrated, the current which is changed due to the vibration of the diaphragm is generated in the microphone, and when the microphone detects that the changed current exists in the microphone, the microphone can be considered to have the voice input.
As an alternative implementation, when the detection result of step 306 is yes, the microphone may further perform the following steps:
the microphone identifies whether the voice is the voice input by the user through a voice recognizer; if the voice is not the voice input by the user, the microphone determines that the microphone is not used by the user, and step 310 is performed.
307. The microphone records a target duration for which the voice input is not detected by a sound collection function of the microphone.
In the embodiment of the present invention, when the microphone detects that there is no voice input, the timing is started, and the timing is stopped until the presence of voice input is detected again, optionally, the microphone records only a preset time period for a case that the microphone does not detect the voice input through the sound collecting function of the microphone, when the microphone records that the time period in which the microphone does not detect the voice input through the sound collecting function of the microphone is less than the preset time period, the microphone records a target time period, when the microphone records that the time period in which the microphone does not detect the voice input through the sound collecting function of the microphone is equal to the preset time period, the microphone stops the timing, and the target time period recorded by the microphone is equal to the preset time period. Therefore, the situation that voice input does not exist in the microphone all the time but the microphone continuously detects and records the situation can be effectively avoided, and the probability that the microphone works all the time when the microphone is not used by a user so that the electricity consumption is caused is reduced.
308. The microphone judges whether the target time length is greater than a preset time length, if so, the step 310 is executed; if not, the flow is ended.
In an embodiment of the present invention, the preset duration is set based on an average duration of a voice input interval when a dedicated user of the microphone uses the microphone.
309. The microphone determines that the sound collection function of the microphone is not turned on.
310. The microphone disconnects the communication connection between the microphone and the electronic device.
In the embodiment of the invention, the microphone is disconnected from the communication connection between the microphone and the electronic equipment so that the microphone does not waste the electric quantity of the electronic equipment in communication connection with the microphone any more, and after the microphone is disconnected from the communication connection between the microphone and the electronic equipment, the microphone is in a closed state so as to achieve the purpose of saving the electric quantity of the microphone, and meanwhile, the microphone can not generate interference on sound equipment around the microphone when not used by a user, so that the generation of noise is reduced.
It can be seen that, by implementing the method described in fig. 3, the microphone can be enabled to be in an on state by detecting whether a communication connection relationship exists with the electronic device, and then determining whether a person wants to use the microphone, when no person uses the microphone, the communication connection relationship between the microphone and the electronic device is disconnected, so that the occurrence of the situation that the microphone is still in an on state when no person uses the microphone can be reduced, and the purpose of saving the electric quantity of the microphone and the electric quantity of the electronic device in communication connection with the microphone can be achieved, so that the electronic device does not need to generate extra electric power consumption, the service time of the electronic device is further prolonged, in addition, when a user approaches the microphone, whether the microphone is further detected by the gravity sensor whether the user inputs an instruction for turning on the sound collection function, if so, determining that the microphone is in use by the user, the microphone will continue to remain on, and if not, determining that there is no user use of the microphone, the microphone is automatically closed to save electric quantity, and the microphone can be more accurately controlled to be opened or closed, so that the microphone is more convenient for users to use, in addition, when the microphone is determined to be used by a user, whether the target time length of the voice input, which is not detected by the sound collecting function of the microphone, is greater than the preset time length or not can be judged, the microphone can be kept in an open state unchanged only when the target time length is greater than the preset time length, therefore, the condition that the user does not use the microphone any more due to other things after starting the sound collection function of the microphone so that the microphone is still in an open state all the time and a large amount of electricity is consumed can be effectively avoided.
Example four
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for controlling a microphone according to another embodiment of the present invention. As shown in fig. 4, the method for controlling the microphone may include the steps of:
step 401 to step 405, wherein the detailed description of step 401 to step 405 refers to the description of step 301 to step 305 in the third embodiment, and the embodiments of the present invention are not described again.
406. The microphone detects whether voice input exists through the sound collection function of the microphone, if so, step 407 is executed; if not, step 410 to step 411 are executed.
In the embodiment of the invention, when voice input exists in the microphone, the diaphragm in the microphone is vibrated, the current which is changed due to the vibration of the diaphragm is generated in the microphone, and when the microphone detects that the changed current exists in the microphone, the microphone can be considered to have the voice input.
As an alternative implementation, when the detection result of step 406 is yes, the microphone may further perform the following steps:
the microphone identifies whether the voice is the voice input by the user through a voice recognizer; if the voice is not the voice input by the user, the microphone determines that there is no user use of the microphone, and step 413 is performed.
407. The microphone identifies whether the characteristic information of the voice is matched with the characteristic information of the voice of the exclusive user of the microphone, if not, the step 408 to the step 409 are executed; if so, the flow ends.
In the embodiment of the present invention, the microphone stores the voice information of the dedicated user of the microphone, and when the microphone detects that there is voice input, the voiceprint recognizer installed on the microphone compares the feature information of the voice with the feature information of the voice of the dedicated user of the microphone, where the feature information of the voice includes a tone, a loudness, and a timbre, and specifically, the voiceprint recognizer may compare at least one of the tone, the loudness, and the timbre to recognize whether the voice matches the voice of the dedicated user of the microphone.
408. The microphone sends a notification message to the electronic device, wherein the notification message comprises an identification of a dedicated user of the microphone and prompt information for prompting that the microphone is being used illegally.
In the embodiment of the present invention, the microphone sends the notification message including the identification of the dedicated user of the microphone and the prompt message for prompting that the microphone is being used illegally to the electronic device, so that the electronic device can identify the user equipment of the dedicated user of the microphone according to the identification of the dedicated user of the microphone, and the electronic device sends the prompt message for prompting that the microphone is being used illegally to the user equipment of the dedicated user of the microphone.
As an optional implementation manner, the prompt message further includes instant location information of the microphone, and after obtaining the instant location information of the microphone, the dedicated user of the microphone may determine whether the microphone is lost, and if the microphone is lost, the dedicated user may retrieve the microphone according to the instant location information of the microphone.
409. Detecting whether a user instruction which is sent by the electronic equipment and used for indicating to disconnect the communication connection between the microphone and the electronic equipment is received by the microphone, and if so, executing step 413; if not, the flow is ended.
In the embodiment of the invention, the user instruction is sent to the electronic equipment by user equipment of a dedicated user of the microphone, and after receiving the user instruction which is sent by the electronic equipment and used for indicating to disconnect the communication connection between the microphone and the electronic equipment, the microphone responds to the user instruction and disconnects the communication connection between the microphone and the electronic equipment, so that when the microphone is illegally used, a user can remotely control the microphone to be closed, and the condition that the microphone is used by an illegal user is avoided.
410. The microphone records a target duration for which the voice input is not detected by a sound collection function of the microphone.
In the embodiment of the present invention, when the microphone detects that there is no voice input, the timing is started, and the timing is stopped until the presence of voice input is detected again, optionally, the microphone records only a preset time period for a case that the microphone does not detect the voice input through the sound collecting function of the microphone, when the time period that the microphone does not detect the voice input through the sound collecting function of the microphone is less than the preset time period, the microphone records a target time period, and when the time period that the microphone does not detect the voice input through the sound collecting function of the microphone is equal to the preset time period, the microphone stops the timing, and the target time period recorded by the microphone is equal to the preset time period. Therefore, the situation that voice input does not exist in the microphone all the time but the microphone continuously detects and records the situation can be effectively avoided, and the probability that the microphone works all the time when the microphone is not used by a user so that the electricity consumption is caused is reduced.
411. The microphone judges whether the target time length is greater than a preset time length, if so, step 413 is executed; if not, the flow is ended.
In an embodiment of the present invention, the preset duration is set based on an average duration of a voice input interval when a dedicated user of the microphone uses the microphone.
412. The microphone determines that the sound collection function of the microphone is not turned on.
413. The microphone disconnects the communication connection between the microphone and the electronic device.
In the embodiment of the invention, the microphone is disconnected from the communication connection between the microphone and the electronic equipment so that the microphone does not waste the electric quantity of the electronic equipment in communication connection with the microphone any more, and after the microphone is disconnected from the communication connection between the microphone and the electronic equipment, the microphone is in a closed state so as to achieve the purpose of saving the electric quantity of the microphone, and meanwhile, the microphone can not generate interference on sound equipment around the microphone when not used by a user, so that the generation of noise is reduced.
It can be seen that, by implementing the method described in fig. 4, the microphone can be enabled to be in an on state by detecting whether a communication connection relationship exists with the electronic device, and then determining whether a person wants to use the microphone, when no person uses the microphone, the communication connection relationship between the microphone and the electronic device is disconnected, so that the occurrence of the situation that the microphone is still in an on state when no person uses the microphone can be reduced, and the purpose of saving the electric quantity of the microphone and the electric quantity of the electronic device in communication connection with the microphone can be achieved, so that the electronic device does not need to generate extra electric power consumption, the service time of the electronic device is further prolonged, in addition, when a user approaches the microphone, whether the microphone is further detected by the gravity sensor whether the user inputs an instruction for turning on the sound collection function, if so, determining that the microphone is used by a user, the microphone will continuously keep on state, if not, determining that the microphone is not used by the user, the microphone will automatically close to save electric quantity, and the microphone can be controlled to open or close more accurately, so that the user can use the microphone more conveniently, furthermore, when determining that the microphone is used by the user, the microphone can be judged whether the target time length of the voice input is not detected by the sound collection function of the microphone is longer than the preset time length, only when the target time length is longer than the preset time length, the microphone can continuously keep on state, thus effectively avoiding the occurrence of large electric quantity consumption caused by that the user does not use the microphone any more because of other things after starting the sound collection function of the microphone, in addition, the microphone can also be used for sending a notification message to the electronic equipment when detecting that the voice input of the illegal user exists, so that the electronic equipment sends the notification message to the user equipment of the exclusive user of the microphone, the exclusive user of the microphone can remotely control the microphone, and the microphone is not used by the illegal user.
EXAMPLE five
Referring to fig. 5, fig. 5 is a schematic structural diagram of a microphone according to an embodiment of the present invention. As shown in fig. 5, the microphone may include:
the first detecting unit 501 is configured to detect whether the microphone in the on state is in communication connection with the electronic device.
In this embodiment of the present invention, the microphone may be a wired microphone or a wireless microphone, and the embodiment of the present invention is not limited thereto. When this microphone is wireless microphone, this microphone can be connected with electronic equipment through connecting the wifi network, also can be connected with electronic equipment through the bluetooth, detects whether communication connection of this microphone and electronic equipment when the microphone is in the open mode through the microphone, when this microphone and electronic equipment communication connection, just can determine this electronic equipment is in the open mode, this moment this microphone just can carry out data transmission through the relation of connection with this electronic equipment.
As an alternative embodiment, the microphone has a function of outputting sound and a function of storing collected sound, when the detection result of the first detection unit 501 is no, the microphone may store the sound input to the microphone by the function of storing the collected sound, and play the sound input to the microphone through the speaker installed on the microphone, the first detecting unit 501 detects the volume value of the played sound after the completion of the playing, and when the first detecting unit 501 detects that the volume value has exceeded the normal range of the volume acceptable to the human ear, a warning notification is issued, to alert the user that the current volume has been detrimental to the hearing of the human ear, that the volume should be reduced, and to automatically reduce the volume to within the normal range of acceptable volume for the human ear, the reminding notification can be realized by suddenly interrupting the playing sound and interrupting the playing sound for at least one second through the microphone. The implementation mode is suitable for children, and for the children, the children cannot realize that the hearing is damaged due to too much sound when using the microphone, at the moment, the microphone is needed to remind and automatically reduce the volume, so that the purpose of protecting the hearing of the children is achieved, and parents can feel relieved about the microphone being used by the children alone.
Optionally, after the microphone stores the sound input into the microphone, if the first detection unit 501 detects that the microphone is in communication connection with the electronic device, the sound information stored in the microphone is sent to the electronic device connected to the microphone, and the sound information sent by the electronic device can be received and played by using a speaker on the microphone, so that the functions of the microphone can be enriched, and the interactivity between the microphone and the electronic device can be enhanced.
The second detecting unit 502 is configured to detect whether there is a user approaching the microphone when the first detecting unit 501 detects that the microphone in the on state is in communication connection with the electronic device.
As an alternative implementation, when the detection result of the second detection unit 502 is yes, the second detection unit 502 calculates the distance between the user and the microphone; the second detecting unit 502 determines whether the distance value is smaller than a preset distance threshold, wherein the preset distance threshold is set based on an average distance value between an exclusive user of the microphone and the microphone when the exclusive user uses the microphone; if the distance value is smaller than the preset distance threshold, the second detection unit 502 determines whether there is a voice input for starting the sound collection function of the microphone; if not, the closing unit 503 disconnects the communication connection between the microphone and the electronic apparatus.
It can be seen that, the second detection unit 502 may further detect whether the user inputs a voice for turning on the sound collection function of the microphone when the second detection unit 502 detects that the user approaches the microphone, and when the user inputs the voice, it indicates that the microphone is being used by the user, the microphone continues to be turned on.
A closing unit 503, configured to disconnect the communication connection between the microphone and the electronic device when the second detecting unit 502 detects that there is no user approaching the microphone.
In the embodiment of the present invention, the closing unit 503 disconnects the communication connection between the microphone and the electronic device so that the microphone does not waste the power of the electronic device in communication connection with the microphone, and after the closing unit 503 disconnects the communication connection between the microphone and the electronic device, the microphone is in a closed state, so as to achieve the purpose of saving the power of the microphone, and meanwhile, the microphone does not interfere with the sound equipment around the microphone when not used by a user, thereby reducing the generation of noise.
Therefore, by implementing the microphone described in fig. 5, it is possible to detect whether there is a communication connection relationship with the electronic device when the microphone is in the on state, and then determine whether there is a person to use the microphone, and when no person uses the microphone, the communication connection relationship between the microphone and the electronic device is disconnected, so that the occurrence of the situation that the microphone is still in the on state when no person uses the microphone can be reduced, and the purpose of saving the electric quantity of the microphone and the electric quantity of the electronic device in communication connection with the microphone is achieved, so that the electronic device does not need to generate extra electric power consumption, and the service life of the electronic device is further prolonged.
EXAMPLE six
Referring to fig. 6, fig. 6 is a schematic structural diagram of another microphone disclosed in the embodiment of the present invention. Wherein, the microphone shown in fig. 6 is optimized by the microphone shown in fig. 5, and compared with the microphone shown in fig. 5, the microphone shown in fig. 6 may further include:
a measuring unit 504 for measuring whether the microphone generates acceleration due to gravity by the gravity sensor when the second detecting unit detects 502 that the user approaches the microphone.
A first judging unit 505, configured to, when the measuring unit 504 measures, through the gravity sensor, acceleration generated by the microphone due to gravity, judge whether the acceleration is smaller than a preset acceleration threshold of the microphone; the preset acceleration threshold is set based on the average acceleration generated by the microphone when the microphone is used by a dedicated user of the microphone.
As an alternative embodiment, when the judgment result of the first judgment unit 505 is no, the first judgment unit 505 judges whether there is pressure applied to the microphone by a pressure sensor installed on the microphone; if the pressure value is smaller than the preset pressure threshold value, the first determining unit 505 determines whether the pressure value is smaller than the preset pressure threshold value, where the preset pressure threshold value is set based on an average pressure value applied to the microphone when the microphone is used by a dedicated user of the microphone; if the pressure is smaller than the preset pressure threshold, the first judgment unit 505 determines that the microphone is not held by the user.
Alternatively, when the first judging unit 505 determines that the microphone is not held by the user, it indicates that the microphone is not used by the user, and the closing unit 503 is further turned on. If the microphone and the electronic equipment are used in a matched manner, some shaking may exist in the process of transporting the microphone and the electronic equipment when a small team needs to go to field activities, so that the microphone generates acceleration caused by gravity, the microphone may be kept in an open state continuously, and the electric quantity is wasted, but the situation can be reduced by detecting the pressure applied to the microphone after the acceleration is detected, so that whether a person uses the microphone can be accurately judged by the microphone, the microphone can save the electric quantity, the consumption of extra electric quantity of the electronic equipment in communication connection with the microphone can be reduced, the electric consumption is reduced, the service life of the electronic equipment is prolonged, and the probability of the situation that the activities are influenced by the fact that the electronic equipment is out of power is reduced.
A determining unit 506, configured to determine that the sound collecting function of the microphone is not turned on when the first determining unit 505 determines that the acceleration is smaller than the preset acceleration threshold of the microphone.
The closing unit 503 is specifically configured to disconnect the communication connection between the microphone and the electronic device when the second detecting unit 502 detects that the user approaches the microphone and the determining unit 506 determines that the sound collecting function of the microphone is not turned on.
In the embodiment of the present invention, the closing unit 503 disconnects the communication connection between the microphone and the electronic device so that the microphone does not waste the power of the electronic device in communication connection with the microphone, and after the closing unit 503 disconnects the communication connection between the microphone and the electronic device, the microphone is in a closed state, so as to achieve the purpose of saving the power of the microphone, and meanwhile, the microphone does not interfere with the sound equipment around the microphone when not used by a user, thereby reducing the generation of noise.
It can be seen that, by implementing the microphone described in fig. 6, it is possible to detect whether there is a communication connection relationship with the electronic device when the microphone is in an on state, and then determine whether there is a person to use the microphone, and when there is no person to use the microphone, the communication connection relationship between the microphone and the electronic device is disconnected, so that it is possible to reduce the occurrence of the situation that the microphone is still in an on state when there is no person to use the microphone, and achieve the purpose of saving the electric quantity of the microphone and the electric quantity of the electronic device in communication connection with the microphone, so that the electronic device does not need to generate extra electric power consumption, and further prolong the service time of the electronic device, and in addition, when there is a user approaching the microphone, it is possible to further detect whether the microphone is inputted by the user an instruction to turn on the sound collection function through the gravity sensor, if so, and if not, determining that the microphone is not used by the user, automatically closing the microphone to save electric quantity, and enabling the microphone to be controlled to be opened or closed more accurately, so that the user can use the microphone more conveniently.
EXAMPLE seven
Referring to fig. 7, fig. 7 is a schematic structural diagram of another microphone according to the disclosure of the present invention. Wherein, the microphone shown in fig. 7 is optimized by the microphone shown in fig. 6, and compared with the microphone shown in fig. 6, the microphone shown in fig. 7 may further include:
the determining unit 506 is further configured to determine that the sound collecting function of the microphone is turned on when the first determining unit 505 determines that the acceleration is greater than or equal to a preset acceleration threshold of the microphone.
And a third detecting unit 507, configured to detect whether there is a voice input through a sound collecting function of the microphone.
In the embodiment of the present invention, when the third detecting unit 507 detects that there is a voice input, the diaphragm in the microphone is vibrated, a current that changes due to the vibration of the diaphragm is generated in the microphone, and when the microphone detects that there is a changing current in the microphone, it can be considered that there is a voice input in the microphone.
As an alternative embodiment, when the detection result of the third detecting unit 507 is yes, the third detecting unit 507 identifies whether the voice is the voice input by the user through the voice recognizer; if the voice is not the voice input by the user, the third detection unit 507 determines that the microphone is not used by the user, and triggers the activation/shutdown unit 503.
A recording unit 508, configured to record a target duration in which the voice input is not detected by the sound collecting function of the microphone when the third detecting unit 507 detects that there is no voice input.
In this embodiment of the present invention, when the third detecting unit 507 detects that there is no voice input, the recording unit 508 starts timing, and stops timing until there is voice input again, optionally, the recording unit 508 only records a preset time period for a case that the microphone does not detect the voice input through the sound collecting function of the microphone, when the recording unit 508 records that the time period that the microphone does not detect the voice input through the sound collecting function of the microphone is less than the preset time period, the recording unit 508 will record a target time period, when the recording unit 508 records that the time period that the microphone does not detect the voice input is equal to the preset time period, the recording unit 508 stops timing, and the target time period recorded by the recording unit 508 is equal to the preset time period. Therefore, the situation that the microphone has no voice input all the time but the recording unit 508 continuously detects and records the voice input can be effectively avoided, and the probability that the microphone is operated all the time when the microphone is not used by a user so that the electricity consumption is caused is reduced.
A second determining unit 509, configured to determine whether the target duration is greater than a preset duration; the preset time length is set based on the average voice input interval time length of the exclusive user of the microphone when the microphone is used.
The closing unit 503 is specifically configured to disconnect the communication connection between the microphone and the electronic device when the second detecting unit 502 detects that the user approaches the microphone, the determining unit 506 determines that the sound collecting function of the microphone is turned on, and the second determining unit 509 determines that the target duration is longer than the preset duration.
It can be seen that, by implementing the microphone described in fig. 7, it is possible to detect whether there is a communication connection relationship with the electronic device when the microphone is in an on state, and then determine whether there is a person to use the microphone, and when there is no person to use the microphone, the communication connection relationship between the microphone and the electronic device is disconnected, so that it is possible to reduce the occurrence of the situation that the microphone is still in an on state when there is no person to use the microphone, and achieve the purpose of saving the electric quantity of the microphone and the electric quantity of the electronic device in communication connection with the microphone, so that the electronic device does not need to generate extra electric power consumption, and further prolong the service time of the electronic device, and in addition, when there is a user approaching the microphone, it is possible to further detect whether the microphone is inputted by the user an instruction to turn on the sound collection function through the gravity sensor, if so, determining that the microphone is in use by the user, the microphone will continue to remain on, and if not, determining that there is no user use of the microphone, the microphone is automatically closed to save electric quantity, and the microphone can be more accurately controlled to be opened or closed, so that the microphone is more convenient for users to use, in addition, when the microphone is determined to be used by a user, whether the target time length of the voice input, which is not detected by the sound collecting function of the microphone, is greater than the preset time length or not can be judged, the microphone can be kept in an open state unchanged only when the target time length is greater than the preset time length, therefore, the condition that the user does not use the microphone any more due to other things after starting the sound collection function of the microphone so that the microphone is still in an open state all the time and a large amount of electricity is consumed can be effectively avoided.
Example eight
Referring to fig. 8, fig. 8 is a schematic structural diagram of another microphone according to the disclosure of the present invention. Wherein, the microphone shown in fig. 8 is optimized by the microphone shown in fig. 7, and compared with the microphone shown in fig. 7, the microphone shown in fig. 8 may further include:
a recognition unit 510, configured to recognize whether the feature information of the voice matches with the feature information of the voice of the dedicated user of the microphone when the third detection unit 507 detects that the voice input exists through the sound collection function of the microphone.
A sending unit 511, configured to send a notification message to the electronic device when the recognition unit 510 recognizes that the feature information of the voice does not match with the feature information of the voice of the dedicated user of the microphone, so that the electronic device recognizes the user equipment of the dedicated user of the microphone according to the identity of the dedicated user of the microphone, and sends the notification message to the user equipment of the dedicated user of the microphone.
As an optional implementation manner, the prompt message further includes instant location information of the microphone, and after obtaining the instant location information of the microphone, the dedicated user of the microphone may determine whether the microphone is lost, and if the microphone is lost, the dedicated user may retrieve the microphone according to the instant location information of the microphone.
A third detecting unit 507, further configured to detect whether a user instruction for instructing to disconnect a communication connection between a microphone and the electronic device, which is sent by the electronic device, is received; the user instruction is sent to the electronic device by the user equipment of the exclusive user of the microphone.
In the embodiment of the present invention, the user instruction is sent to the electronic device by a user device of an exclusive user of the microphone, and after the third detection unit 507 detects that a user instruction sent by the electronic device and used for instructing to disconnect the communication connection between the microphone and the electronic device is received, the closing unit 503 responds to the user instruction and disconnects the communication connection between the microphone and the electronic device, so that when the microphone is illegally used, a user can remotely control the microphone to be closed, thereby avoiding the microphone from being used by an illegal user.
A closing unit 503, specifically configured to disconnect the communication connection between the microphone and the electronic device when the second detecting unit 502 detects that there is a user approaching the microphone, the determining unit 506 determines that the sound collecting function of the microphone is turned on, the third detecting unit 507 detects that the voice input exists through the sound collecting function of the microphone, and the third detecting unit 507 detects that a user instruction for instructing to disconnect the communication connection between the microphone and the electronic device is received, where the user instruction is sent by the electronic device.
It can be seen that, by implementing the microphone described in fig. 8, it is possible to detect whether there is a communication connection relationship with the electronic device when the microphone is in an on state, and then determine whether there is a person to use the microphone, and when there is no person to use the microphone, the communication connection relationship between the microphone and the electronic device is disconnected, so that it is possible to reduce the occurrence of the situation that the microphone is still in an on state when there is no person to use the microphone, and achieve the purpose of saving the electric quantity of the microphone and the electric quantity of the electronic device in communication connection with the microphone, so that the electronic device does not need to generate extra electric power consumption, and further prolong the service time of the electronic device, and in addition, when there is a user approaching the microphone, it is possible to further detect whether the microphone is inputted by the user an instruction to turn on the sound collection function through the gravity sensor, if so, determining that the microphone is used by a user, the microphone will continuously keep on state, if not, determining that the microphone is not used by the user, the microphone will automatically close to save electric quantity, and the microphone can be controlled to open or close more accurately, so that the user can use the microphone more conveniently, furthermore, when determining that the microphone is used by the user, the microphone can be judged whether the target time length of the voice input is not detected by the sound collection function of the microphone is longer than the preset time length, only when the target time length is longer than the preset time length, the microphone can continuously keep on state, thus effectively avoiding the occurrence of large electric quantity consumption caused by that the user does not use the microphone any more because of other things after starting the sound collection function of the microphone, in addition, the microphone can also be used for sending a notification message to the electronic equipment when detecting that the voice input of the illegal user exists, so that the electronic equipment sends the notification message to the user equipment of the exclusive user of the microphone, the exclusive user of the microphone can remotely control the microphone, and the microphone is not used by the illegal user.
Example nine
Referring to fig. 9, fig. 9 is a schematic structural diagram of another microphone according to the disclosure of the present invention. As shown in fig. 9, the microphone may include:
a memory 901 in which executable program code is stored;
a processor 902 coupled to a memory 901;
the processor 902 calls the executable program code stored in the memory 901 to execute the control method of the microphone in any one of fig. 1 to 4.
An embodiment of the present invention discloses a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute a method for controlling a microphone according to any one of fig. 1 to 4.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The above detailed description is provided for the microphone and the control method thereof, and the specific examples are applied in this document to explain the principle and the implementation of the present invention, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of controlling a microphone, the method comprising:
detecting whether the microphone in an opening state is in communication connection with the electronic equipment;
if the microphone in the opening state is in communication connection with the electronic equipment, detecting whether a user approaches the microphone;
disconnecting the communication connection between the microphone and the electronic device if no user is close to the microphone;
measuring, by a gravity sensor, whether the microphone generates acceleration due to gravity if there is a user approaching the microphone; if the microphone generates acceleration caused by gravity, judging whether the acceleration is smaller than a preset acceleration threshold value of the microphone; if not, judging whether pressure is applied to the microphone through a pressure sensor installed on the microphone; if the pressure exists, judging whether the pressure is smaller than a preset pressure threshold value, if so, determining that the microphone is not held by a user, and executing the communication connection between the microphone and the electronic equipment; wherein, the microphone and the electronic equipment are used by matching with a team going to field activity.
2. The method of claim 1, wherein:
the preset acceleration threshold is set based on the average acceleration generated by the microphone when the microphone is used by a dedicated user of the microphone;
the method further comprises the following steps:
and if the acceleration is smaller than a preset acceleration threshold value of the microphone, determining that the sound collection function of the microphone is not started, and executing the disconnection of the communication connection between the microphone and the electronic equipment.
3. The method of claim 2, further comprising:
if the acceleration is larger than or equal to a preset acceleration threshold value of the microphone, determining that a sound collection function of the microphone is started, and detecting whether voice input exists or not through the sound collection function of the microphone;
if the voice input does not exist through the sound collection function of the microphone, recording the target duration that the voice input is not detected through the sound collection function of the microphone;
judging whether the target time length is greater than a preset time length or not; the preset time length is set according to the average voice input interval time length of an exclusive user of the microphone when the microphone is used;
and if the target duration is longer than the preset duration, executing the disconnection of the communication connection between the microphone and the electronic equipment.
4. The method of claim 3, further comprising:
if the voice input is detected to exist through the sound collecting function of the microphone, identifying whether the characteristic information of the voice is matched with the characteristic information of the voice of the exclusive user of the microphone;
if the user identification information is not matched with the user identification information, sending a notification message which comprises the identification of the exclusive user of the microphone and prompt information for prompting that the microphone is being illegally used to the electronic equipment, so that the electronic equipment identifies the user equipment of the exclusive user of the microphone according to the identification of the exclusive user of the microphone, and the electronic equipment sends the prompt information for prompting that the microphone is being illegally used to the user equipment of the exclusive user of the microphone;
detecting whether a user instruction which is sent by the electronic equipment and used for indicating to disconnect the communication connection between the microphone and the electronic equipment is received; wherein the user instruction is sent to the electronic device by a user device of a dedicated user of the microphone;
if yes, the communication connection between the microphone and the electronic equipment is disconnected.
5. The method of claim 4, wherein the prompt further comprises instantaneous location information of the microphone.
6. A microphone, comprising:
the first detection unit is used for detecting whether the microphone in the opening state is in communication connection with the electronic equipment or not;
the second detection unit is used for detecting whether a user approaches the microphone or not when the first detection unit detects that the microphone in the opening state is in communication connection with the electronic equipment;
a closing unit, configured to disconnect a communication connection between the microphone and the electronic device when the second detection unit detects that there is no user approaching the microphone;
a measuring unit for measuring whether the microphone generates acceleration due to gravity by a gravity sensor when the second detecting unit detects that there is a user approaching the microphone;
the first judgment unit is used for judging whether the acceleration is smaller than a preset acceleration threshold value of the microphone or not when the measurement unit measures the acceleration of the microphone caused by gravity through the gravity sensor; if not, judging whether pressure is applied to the microphone through a pressure sensor installed on the microphone; if the pressure exists, judging whether the pressure is smaller than a preset pressure threshold value, if so, determining that the microphone is not held by a user, and triggering a closing unit to execute the disconnection of the communication connection between the microphone and the electronic equipment; wherein, the microphone and the electronic equipment are used by matching with a team going to field activity.
7. The microphone of claim 6, wherein:
the preset acceleration threshold is set based on the average acceleration generated by the microphone when the microphone is used by a dedicated user of the microphone;
the microphone further includes:
the determining unit is used for determining that the sound collecting function of the microphone is not started when the first judging unit judges that the acceleration is smaller than the preset acceleration threshold of the microphone;
the closing unit is further configured to perform disconnection of the communication connection between the microphone and the electronic device when the determining unit determines that the sound collecting function of the microphone is not turned on.
8. The microphone of claim 7, wherein:
the determining unit is further configured to determine that a sound collecting function of the microphone is turned on when the first judging unit judges that the acceleration is greater than or equal to a preset acceleration threshold of the microphone;
the microphone further includes:
a third detecting unit for detecting whether there is a voice input through the sound collecting function of the microphone;
a recording unit configured to record a target duration in which the voice input is not detected by the sound collection function of the microphone when the third detection unit detects that the voice input does not exist;
the second judgment unit is used for judging whether the target time length is greater than a preset time length or not; the preset time length is set according to the average voice input interval time length of an exclusive user of the microphone when the microphone is used;
the closing unit is further configured to disconnect the communication connection between the microphone and the electronic device when the second determining unit determines that the target duration is longer than the preset duration.
9. The microphone of claim 8, further comprising:
the recognition unit is used for recognizing whether the feature information of the voice is matched with the feature information of the voice of the exclusive user of the microphone or not when the third detection unit detects that the voice input exists through the sound collection function of the microphone;
a sending unit, configured to send, when the recognition unit recognizes that the feature information of the voice does not match the feature information of the voice of the dedicated user of the microphone, a notification message including an identity of the dedicated user of the microphone and a prompt message for prompting that the microphone is being illegally used to the electronic device, so that the electronic device recognizes, according to the identity of the dedicated user of the microphone, the user equipment of the dedicated user of the microphone, and sends, by the electronic device, the prompt message for prompting that the microphone is being illegally used to the user equipment of the dedicated user of the microphone;
the third detection unit is further configured to detect whether a user instruction sent by the electronic device and used for instructing to disconnect the communication connection between the microphone and the electronic device is received; wherein the user instruction is sent to the electronic device by a user device of a dedicated user of the microphone;
the closing unit is further configured to execute the disconnection of the communication connection between the microphone and the electronic device when the third detection unit detects and receives a user instruction, sent by the electronic device, for instructing to disconnect the communication connection between the microphone and the electronic device.
10. The microphone of claim 9, wherein the cue information further comprises instantaneous location information of the microphone.
CN201710980667.6A 2017-10-19 2017-10-19 Microphone control method and microphone Active CN107765891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710980667.6A CN107765891B (en) 2017-10-19 2017-10-19 Microphone control method and microphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710980667.6A CN107765891B (en) 2017-10-19 2017-10-19 Microphone control method and microphone

Publications (2)

Publication Number Publication Date
CN107765891A CN107765891A (en) 2018-03-06
CN107765891B true CN107765891B (en) 2021-12-21

Family

ID=61270002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710980667.6A Active CN107765891B (en) 2017-10-19 2017-10-19 Microphone control method and microphone

Country Status (1)

Country Link
CN (1) CN107765891B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108430000B (en) * 2018-04-13 2021-07-23 广东小天才科技有限公司 Method for managing and controlling microphone equipment based on electric quantity, microphone equipment and system
JP6633139B2 (en) * 2018-06-15 2020-01-22 レノボ・シンガポール・プライベート・リミテッド Information processing apparatus, program and information processing method
CN109068239B (en) * 2018-07-17 2021-02-19 广东小天才科技有限公司 Terminal control method, control device and electronic equipment
CN109917919A (en) * 2019-03-13 2019-06-21 深圳市聚芯影像有限公司 A kind of gesture control vehicle intelligent system and its control method
CN109922397B (en) * 2019-03-20 2020-06-16 深圳趣唱科技有限公司 Intelligent audio processing method, storage medium, intelligent terminal and intelligent Bluetooth headset
JP7024754B2 (en) * 2019-03-25 2022-02-24 カシオ計算機株式会社 Controls, robots, control methods and programs
CN111090329B (en) * 2019-06-09 2023-10-27 广东小天才科技有限公司 Click-to-read mode starting method and electronic equipment
CN111669674B (en) * 2020-06-24 2022-06-03 歌尔科技有限公司 MIC anti-recording assembly, loudspeaker box and anti-recording method
CN112437334A (en) * 2020-11-10 2021-03-02 青岛海信传媒网络技术有限公司 Display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051822A (en) * 2007-03-23 2007-10-10 炬力集成电路设计有限公司 Method for automatic control and regulating broadcast volume
CN101697277A (en) * 2009-10-23 2010-04-21 罗富强 Method, device and system for realizing multifunction of intelligent wireless microphone
CN105302022A (en) * 2015-11-02 2016-02-03 南京邮电大学 Wireless sensor network-based intelligent microphone system and implementation method thereof
CN107205198A (en) * 2017-06-13 2017-09-26 北京小米移动软件有限公司 The unlocking method and a device of microphone

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6754373B1 (en) * 2000-07-14 2004-06-22 International Business Machines Corporation System and method for microphone activation using visual speech cues
KR100782929B1 (en) * 2005-09-23 2007-12-07 삼성전자주식회사 Mult-functional bluetooth headset
CN202353773U (en) * 2011-12-05 2012-07-25 佳乐电子股份有限公司 Induction opening type microphone
CN202383867U (en) * 2011-12-29 2012-08-15 海信集团有限公司 Handheld laser emitter with automatic onoff function
CN104007809B (en) * 2013-02-27 2017-09-01 联想(北京)有限公司 A kind of control method and electronic equipment
CN103501375B (en) * 2013-09-16 2017-04-19 华为终端有限公司 Method and device for controlling sound effect
CN106254689A (en) * 2016-09-30 2016-12-21 维沃移动通信有限公司 The alarm method of a kind of mobile terminal and mobile terminal
CN206490770U (en) * 2016-11-30 2017-09-12 深圳市岚正科技有限公司 There is the set top box and set-top-box system of far field and near field voice identification simultaneously
CN107124550A (en) * 2017-05-16 2017-09-01 珠海市魅族科技有限公司 A kind of camera closing, open method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051822A (en) * 2007-03-23 2007-10-10 炬力集成电路设计有限公司 Method for automatic control and regulating broadcast volume
CN101697277A (en) * 2009-10-23 2010-04-21 罗富强 Method, device and system for realizing multifunction of intelligent wireless microphone
CN105302022A (en) * 2015-11-02 2016-02-03 南京邮电大学 Wireless sensor network-based intelligent microphone system and implementation method thereof
CN107205198A (en) * 2017-06-13 2017-09-26 北京小米移动软件有限公司 The unlocking method and a device of microphone

Also Published As

Publication number Publication date
CN107765891A (en) 2018-03-06

Similar Documents

Publication Publication Date Title
CN107765891B (en) Microphone control method and microphone
JP6611470B2 (en) Headphone listening device
CN106463112B (en) Voice recognition method, voice awakening device, voice recognition device and terminal
CN108710615B (en) Translation method and related equipment
EP2824897A1 (en) Mobile terminal and abnormal call processing method therefor
WO2011100890A1 (en) Reminding method of environmental sound and mobile terminal thereof
CN109982228B (en) Microphone fault detection method and mobile terminal
CN111510814A (en) Noise reduction mode control method and device, electronic equipment and storage medium
CN107633853B (en) Control method for playing audio and video files and user terminal
CN105321293A (en) Danger detection and warning method and danger detection and warning smart device
WO2017185702A1 (en) Pressure sensor-based method and system for volume control
CN105430152A (en) Method and device for controlling player to go into sleep mode and terminal equipment
CN108731388A (en) Dehumanization method and device, the electronic equipment of electronic equipment sounding module
CN113194383A (en) Sound playing method and device, electronic equipment and readable storage medium
EP3157270B1 (en) Hearing device with vibration sensitive transducer
CN106856416B (en) Incoming call reminding method of wearable device and wearable device
TW201717192A (en) Electronic apparatus and voice trigger method therefor
CN105182730A (en) Alarm clock prompting method and device
JP2007165940A (en) Cellular phone, and acoustic reproduction operation automatic stopping method therefor
JP2006295669A (en) Sound reproducing apparatus
CN106713642B (en) Contact person-based wearable device control method and wearable device
CN109168098B (en) System for automatically controlling to suspend and open Bluetooth headset when mobile phone is away from ear and control method thereof
WO2022135071A1 (en) Earphone playback control method and apparatus, and electronic device and storage medium
CN107479909B (en) Method and device for closing multimedia application and intelligent terminal
CN112102829A (en) Player control system and method based on voice recognition

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