CN112995833B - Earphone voice collecting method, earphone and readable storage medium - Google Patents

Earphone voice collecting method, earphone and readable storage medium Download PDF

Info

Publication number
CN112995833B
CN112995833B CN202110242627.8A CN202110242627A CN112995833B CN 112995833 B CN112995833 B CN 112995833B CN 202110242627 A CN202110242627 A CN 202110242627A CN 112995833 B CN112995833 B CN 112995833B
Authority
CN
China
Prior art keywords
earphone
microphone
voice
state
voice information
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
CN202110242627.8A
Other languages
Chinese (zh)
Other versions
CN112995833A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202110242627.8A priority Critical patent/CN112995833B/en
Publication of CN112995833A publication Critical patent/CN112995833A/en
Application granted granted Critical
Publication of CN112995833B publication Critical patent/CN112995833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a voice collecting method of an earphone, which comprises the following steps: when a vibration signal is detected by a vibration detection device of the earphone, controlling a microphone of the earphone to be switched from a dormant state to a working state; collecting voice information through the microphone; and after the voice information is collected, controlling the microphone to be switched from the working state to the dormant state. The invention also provides an earphone and a readable storage medium. The voice collecting method of the earphone detects the vibration signal through the vibration detection device, namely controls the microphone to be switched from the dormant state to the working state to collect voice information when a wearer of the earphone speaks, and controls the microphone to be switched from the working state to the dormant state after the voice information is collected, so that the aims of realizing discontinuous work of the microphone by voice collection when the wearer speaks only by the microphone are fulfilled, reducing the energy consumption of the earphone and increasing the endurance time of the earphone are fulfilled.

Description

Earphone voice collection method, earphone and readable storage medium
Technical Field
The present invention relates to the field of earphone technologies, and in particular, to a voice collecting method for an earphone, and a readable storage medium.
Background
The voice recognition function is strong, man-machine interaction can be achieved only through voice signals, and man-machine communication can be achieved without modes such as image vision and manual input. However, when performing voice recognition, the microphone needs to continuously collect a voice signal, and the headset needs to continuously perform recognition processing on the voice signal, which results in large power consumption.
At present, the earphone, especially wireless bluetooth earphone, because of not needing the data line to connect, alright listen to audio information, liked by most users deeply, however, because the restriction of earphone self size and capacity, the battery capacity is limited, according to relevant test display, if add the speech recognition function at the earphone, will greatly reduce the duration of earphone, the earphone duration shortens more than half after the speech recognition function is opened to the earphone even.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a voice collecting method of an earphone, the earphone and a readable storage medium, and aims to solve the problem that the duration of the earphone is greatly reduced due to the fact that a voice recognition function is added to the earphone.
In order to achieve the above object, the present invention provides a method for collecting speech of a headset, the method for collecting speech of the headset comprising:
when a vibration signal is detected by a vibration detection device of the earphone, controlling a microphone of the earphone to be switched from a dormant state to a working state;
collecting voice information through the microphone;
and after the voice information is collected, controlling the microphone to be switched from the working state to the dormant state.
Optionally, after the voice information is collected, the step of controlling the microphone to switch from the working state to the dormant state includes:
after the voice information is collected, timing is started;
and when the timing duration is longer than the preset duration, controlling the microphone to be switched from the working state to the dormant state.
Optionally, after the voice information is collected, the step of controlling the microphone to switch from the working state to the dormant state includes:
after the voice information is collected, acquiring a voice command instruction corresponding to the voice information;
and after executing a function corresponding to the voice command instruction or sending the voice command instruction, controlling the microphone to be switched from the working state to the dormant state.
Optionally, after the voice information is collected, the step of obtaining the voice command instruction corresponding to the voice information includes:
after the voice information is collected, recognizing the voice information;
judging whether the voice information contains a wake-up keyword or not;
and if the voice information contains the awakening keyword, acquiring a voice command instruction corresponding to the voice information.
Optionally, the method for collecting speech of the headset further comprises:
and if the voice information does not contain the awakening keyword, controlling the microphone to be switched from the working state to the dormant state.
Optionally, after the step of determining that the voice message contains a wake-up keyword, the method further includes:
acquiring the state of a Bluetooth module of the earphone;
if the state of the Bluetooth module is a working state, executing the step of acquiring the voice command instruction corresponding to the voice information;
and if the state of the Bluetooth module is a dormant state, waking up the Bluetooth module and executing the step of acquiring the voice command instruction corresponding to the voice information.
Optionally, before the step of controlling the microphone of the headset to switch from the sleep state to the working state, the method includes:
acquiring the current wearing information of the earphone;
and the wearing information determines that the earphone is in a wearing state, and executes control to switch the microphone of the earphone from a dormant state to a working state.
Optionally, the method for collecting speech of the headset further comprises:
when a vibration signal is detected by a vibration detection device of the earphone, acquiring a working mode of the earphone;
when the working mode of the earphone is a non-call mode, executing the step of controlling the microphone of the earphone to be switched from a dormant state to a working state;
when the working mode of the earphone is a call mode, detecting a signal for ending the call mode;
and when the signal of the end of the call mode is detected, controlling the microphone to be switched from the working state to the dormant state.
In addition, to achieve the above object, the present invention also provides a headset including: a memory, a processor and a speech collection program for a headset stored in the memory and executable on the processor, the speech collection program for a headset implementing the steps of the speech collection method for a headset as described above when executed by the processor.
Further, to achieve the above object, the present invention also provides a readable storage medium storing a speech collection program of a headset, which when executed by the processor, implements the steps of the speech collection method of the headset as described above.
According to the voice collecting method of the earphone, the earphone and the readable storage medium, the vibration signal is detected through the vibration detection device, namely when a wearer of the earphone speaks, the microphone is controlled to be switched from the dormant state to the working state to collect voice information, and after the voice information is collected, the microphone is controlled to be switched from the working state to the dormant state, so that the purposes that the microphone discontinuously works by collecting the voice when only the wearer speaks, the energy consumption of the earphone is reduced, and the duration of the cruising of the earphone is prolonged are achieved.
Drawings
Fig. 1 is a block diagram of a headset according to various embodiments of a speech collection method of the headset of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for collecting speech of a headset according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of a speech collection method of an earphone according to the present invention;
fig. 4 is a schematic flow chart illustrating the completion of the collection of the voice information in the second embodiment of the method for collecting voice information of an earphone according to the present invention;
fig. 5 is a flowchart illustrating a speech collection method of a headset according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
In the embodiment of the invention, the terminal equipment is an earphone. It should be noted that the headset is provided with a vibration monitoring device, such as a vibration detection sensor, and a microphone, wherein the vibration detection device is used for detecting whether a vocal part of a wearer of the headset vibrates or not to determine whether the user speaks, wherein the vocal part includes, but is not limited to, a temporomandibular joint and a vocal cord of a human head. The microphone is used to collect voice information of the wearer.
It should be noted that, in the practical application process, the headset may store a voice recognition algorithm, and the interaction between the headset and the wearer of the headset is realized through voice by recognizing the voice information collected by the microphone, so that the operation is simple and convenient, for example, when the wearer listens to music through the headset, the music may be switched through "playing the next" voice, or the volume of playing music may be increased through "increasing the volume" voice, or the music being played may be turned off through "turning off the music" voice. In another example, when the wearer is talking on the earphone, the wearer can answer the incoming call by "answering the call" through voice.
Referring to fig. 1, fig. 1 is a block diagram of a headset according to various embodiments of a speech collection method of the headset of the present invention, where the headset may include: memory 101, processor 102, and communication module 103. It will be appreciated by those skilled in the art that the block diagram of the terminal device shown in fig. 1 does not constitute a limitation of the terminal, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. The memory 101 stores therein an operating system and a speech collection program for the headset. The processor 102 is a control center of the terminal device, and the processor 102 executes a voice collecting program of the headset stored in the memory 101 to implement the steps of the embodiments of the voice collecting method of the headset of the present invention. The communication module 103 may establish data communication (the data communication may be IP communication or bluetooth channel) with other terminal devices such as a mobile phone or a computer through a network protocol, so as to enable the headset to send a voice command instruction to the terminal device, and further enable data transmission between the headset and the terminal device, so as to execute a function corresponding to the voice command instruction through the terminal device.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a first embodiment of a method for collecting a voice of an earphone according to the present invention. In this embodiment, the speech collection method of the headset includes the steps of:
step S10, when a vibration signal is detected by a vibration detection device of the earphone, controlling a microphone of the earphone to be switched to a working state from a dormant state;
step S20, collecting voice information through the microphone;
and step S30, after the voice information is collected, controlling the microphone to be switched from the working state to the dormant state.
In the practical application process, compared with the situation that the microphone needs to continuously collect voice information during voice recognition and the headset needs to continuously recognize the voice information, the power consumption is high, the vibration detection device, the microphone and the voice recognition algorithm stored in the headset are arranged on the headset aiming at the condition that a wearer of the headset only interacts with the headset through a voice command instruction in the voice information, so that the purpose that the wearer interacts with the headset is achieved. In essence, when a wearer speaks, the sound is generated due to vocal cords vibration, especially when the person speaks with mouth open, the vibration detection device detects whether the vocal part of the wearer of the earphone, such as vocal cords and temporomandibular joint, vibrates to determine whether the user speaks, and when the vibration detection device detects a vibration signal, i.e., determines that the wearer speaks, the microphone of the earphone is controlled to switch from the dormant state to the working state, so that the microphone collects voice information only when the wearer speaks, and after the voice information is collected, the microphone is controlled to switch from the working state to the dormant state, so that the microphone intermittently works by switching between the working state and the dormant state.
When the vibration detection sensor detects that the wearer opens the oral cavity, namely temporomandibular joint vibration and vocal cords vibration, an interrupt signal is triggered to inform the microphone to collect all voice information of the surrounding environment; when the vibration is not detected by the vibration detection sensor, the dormant state of the microphone is kept, and the operation of the voice recognition algorithm is stopped, so that the power consumption is reduced, and the duration of the flight time of the earphone is not influenced. Correspondingly, after the microphone receives an interrupt notification signal from the vibration detection sensor, the microphone is opened and collects voice information of the surrounding environment, optionally, a voice command instruction in the voice information can be recognized through a voice recognition algorithm, and then interaction between a headset wearer and the headset is realized through the voice command instruction, so that the use is simple and convenient, and the intellectualization of the headset is improved.
As an optional implementation manner, the step S30, after the voice information collection is completed, controlling the microphone to switch from the operating state to the dormant state includes:
after the voice information is collected, timing is started;
and when the timing duration is longer than the preset duration, controlling the microphone to be switched from the working state to the dormant state.
In the practical application process, the speaking speeds of different people are different, or after one speech is spoken and a preset time duration is reached, the next speech is spoken, so that the microphone is switched from the working state to the dormant state when the wearer speaks again, the microphone is frequently switched between the dormant state and the working state, and the energy consumption of the headset is increased. After the voice information is collected, timing is started, and when the timing duration is longer than the preset duration, namely when the wearer is determined not to speak for a long time, the microphone is controlled to be switched from the working state to the dormant state, so that the energy consumption of the earphone is reduced. It is easy to understand that when the timing duration is less than or equal to the preset duration, that is, the wearer does not speak for a short time but does not speak for a large probability, the working state of the microphone can be maintained. The preset duration can be preset, or set according to the obtained speaking speed and the speaking habit information of the earphone wearer, and is used for determining the minimum duration for the earphone wearer to finish speaking at a high probability. It should be noted that, when the voice information is collected, the timing device, such as a timer, arranged on the earphone may be triggered to perform timing operation; the timing operation may also be implemented by triggering other terminal devices connected to the headset, such as triggering to start a clock timing function, which is not limited herein.
Optionally, to determine that the voice collection is completed, the user of the headset may definitely finish speaking by presetting a voice end keyword, for example, "input completed", and when the preset voice end keyword is recognized to exist in the voice information, it indicates that the voice information collection is completed.
As an optional implementation manner, before the step S10 of controlling the microphone of the earphone to switch from the sleep state to the working state, the method includes:
acquiring the current wearing information of the earphone;
and the wearing information determines that the earphone is in a wearing state, and executes control to switch the microphone of the earphone from a dormant state to a working state.
The wearing information may be used to determine a state of the headset, such as a wearing state or a non-wearing state, and optionally, the wearing information includes a wearing identifier, and an identifier value of the wearing identifier may be used to determine whether the headset is in the wearing state or the non-wearing state. It can be understood that when the earphone is in a wearing state, a wearer can listen to music, talk and the like through the earphone, and when the earphone is in a non-wearing state, the earphone can be put into the earphone box to be charged or can be stored through the earphone box. In the practical application process, when the earphone is in a non-wearing state, the vibration detection device arranged on the earphone can detect a vibration signal, the microphone is controlled to be switched from the dormant state to the working state, and in order to avoid the earphone being in the non-wearing state, namely when the earphone is not needed to be used, the microphone of the earphone is controlled to be switched from the dormant state to the working state, so that the energy consumption of the earphone is increased, and when the microphone of the earphone is controlled to be switched from the dormant state to the working state, whether the current state of the earphone is in the wearing state or the non-wearing state can be determined.
The current wearing information of the earphone is acquired, a wearing identifier can be preset, and whether the earphone is in a wearing state or a non-wearing state is determined by acquiring an identifier value of the wearing identifier, for example, the identifier value of the wearing identifier is "1" to indicate that the earphone is in the wearing state, and the identifier value of the wearing identifier is "0" to indicate that the earphone is in the non-wearing state. When the wearing information determines that the earphone is in a wearing state, namely the identification value of the wearing identification is '1', controlling the microphone of the earphone to be switched from a dormant state to a working state so as to determine that the earphone is in use and the microphone needs to be awakened to collect the voice information of a wearer; when the wearing information determines that the earphone is in a non-wearing state, namely the identification value of the wearing identification is '0', the microphone of the earphone is kept in a dormant state, the phenomenon that when the earphone is in the non-wearing state, namely the earphone is not needed to be used, the microphone is switched to a working state from the dormant state to increase the energy consumption of the earphone is avoided, and the duration of the headset is shortened.
Compared with the method for continuously collecting voice information by a microphone during voice recognition, the method for continuously recognizing the voice information by the earphone performs processing, in the technical scheme disclosed by the embodiment, a vibration signal is detected by a vibration detection device, namely, when a wearer of the earphone speaks, the microphone is controlled to be switched from a dormant state to a working state to collect the voice information, and after the voice information is collected, the microphone is controlled to be switched from the working state to the dormant state, so that the aims of performing voice collection on the microphone only when the wearer speaks to realize intermittent work of the microphone, reducing the energy consumption of the earphone and increasing the endurance time of the earphone are fulfilled.
Referring to fig. 3, fig. 3 is a flowchart illustrating a voice collecting method for an earphone according to a second embodiment of the present invention. In this embodiment, the step S30, after the voice information collection is completed, controlling the microphone to switch from the working state to the dormant state includes:
step S31, after the voice information is collected, acquiring a voice command instruction corresponding to the voice information;
and step S32, after executing the function corresponding to the voice command instruction or sending the voice command instruction, controlling the microphone to be switched from the working state to the dormant state.
In the practical application process, the earphone storage has the speech recognition algorithm, and the speech information of collecting through the discernment microphone realizes the interaction between the person of wearing of earphone and earphone through pronunciation in order to realize, and easy operation uses conveniently.
After the voice information is collected, the voice command instruction corresponding to the voice information can be acquired by recognizing the voice command keyword in the voice information as the voice command instruction, wherein the voice command keyword can be preset according to the requirements of users, and can also be uniformly preset by earphone manufacturers without limitation.
It should be noted that, after the voice command instruction is determined, the function corresponding to the voice command instruction is executed, and the corresponding relationship between the voice command instruction and the realized function may be preset, for example, "play next" or "next" corresponds to switching music, and when the voice information identifies the voice command keyword of "play next" or "next", the voice command keyword is used as the voice command instruction, and the function of switching music is executed; as another example, if "increase the volume" corresponds to increasing the playback volume of music, the function of increasing the playback volume of music is executed when the keyword of "increase the volume" is recognized by the voice information. In practical applications, for example, when the wearer listens to music through the earphone, the music can be switched by "playing the next" through voice, or the volume of the played music can be increased by "increasing the volume" through voice, or the music being played can be switched off by "turning off the music" through voice. For another example, when the wearer is talking on the earphone, the wearer can answer the incoming call through the voice to 'answer the phone'. It should be noted that after the voice command instruction corresponding to the voice information is obtained, the function corresponding to the voice command instruction can be directly executed on the earphone, for example, when the playing volume of music is increased, the playing volume of music can be adjusted by controlling the earphone through the voice command instruction, so as to directly adjust the volume of music played by the earphone; of course, the voice command instruction may also be sent to a terminal device connected to the headset, such as a mobile phone or a computer, so as to execute a function corresponding to the voice command instruction through the terminal device. And finally, after executing the function corresponding to the voice command instruction or sending the voice command instruction, controlling the microphone to be switched from the working state to the dormant state so as to save energy consumption.
Optionally, referring to fig. 4, fig. 4 is a schematic flow chart illustrating a process of completing voice information collection in a second embodiment of a method for collecting voice information of an earphone according to the present invention, where the step S31, after completing the voice information collection, acquiring a voice command instruction corresponding to the voice information includes:
step S311, recognizing the voice information after the voice information is collected;
step S312, judging whether the voice message contains a wake-up keyword;
step 313, if the voice message includes the wake-up keyword, a voice command instruction corresponding to the voice message is obtained.
In the practical application process, because the wearer of the earphone may only communicate with other people through voice instead of interacting with the earphone through voice, after the voice information is collected, the voice information is identified by the voice identification algorithm stored in the earphone to judge whether the voice information contains a wake-up keyword, wherein the wake-up keyword is used for determining whether the wearer of the earphone interacts with the earphone, if the voice information contains the wake-up keyword, it is also determined that the wearer of the earphone interacts with the earphone, a function corresponding to the voice command instruction can be executed by acquiring the voice command instruction in the voice information, or the voice command instruction is sent to a terminal device connected with the earphone, and the function corresponding to the voice command instruction is executed through the terminal device. The awakening keyword can be set by a user of the earphone in a self-defined manner, and the keyword can also be set by a manufacturer of the earphone in a default manner, which is not limited to the above.
It can be understood that, if the voice information does not include the wake-up keyword, that is, the user of the headset does not interact with the headset, that is, the microphone is controlled to switch from the working state to the sleep state when the voice information is not collected by the microphone and interacts with the headset, so as to reduce energy consumption of the headset.
As an optional implementation manner, after the step of determining that the voice message includes a wake-up keyword, the method further includes:
acquiring the state of a Bluetooth module of the earphone;
if the state of the Bluetooth module is a working state, executing the step of acquiring the voice command instruction corresponding to the voice information;
and if the state of the Bluetooth module is a dormant state, waking up the Bluetooth module and executing the step of acquiring the voice command instruction corresponding to the voice information.
In the practical application process, when the earphone is used, such as in a communication process or a music listening process, the earphone is usually connected with other terminal equipment, and it can be understood that the state of the bluetooth module of the earphone is a working state at this time; and the earphone can be dormant by controlling the Bluetooth module in a non-use process, such as a charging process or placing the earphone in an earphone box, so that the energy consumption of the earphone is reduced and the purpose of saving electricity is achieved.
After the step of determining that the voice information contains the awakening keyword, that is, determining that the wearer of the earphone interacts with the earphone, further determining whether the Bluetooth module is in a working state by acquiring the state of the Bluetooth module of the earphone, wherein it is easy to understand that the state of the Bluetooth module is in the working state, the step of acquiring the voice command instruction corresponding to the voice information can be directly executed, and further the interaction between the wearer of the earphone and the earphone is realized through the voice command instruction; the state of the Bluetooth module is a dormant state, the Bluetooth module can be waken up firstly, namely the dormant state of the Bluetooth module is switched to a working state, then the step of obtaining the voice command instruction corresponding to the voice information is executed, and interaction between a user wearing the earphone and the earphone is achieved through the voice command instruction.
It can be understood that, after the bluetooth module awakens up, can collect speech information with the microphone, filter and awaken the keyword of awakening up to according to the transfer protocol between the bluetooth, the data that the packing contains the voice command instruction in the speech information sends other terminal equipment like the cell-phone, can upload the high in the clouds discernment after this terminal equipment receives data, and send the result that the high in the clouds returned to the earphone, exports for the person of wearing through the speaker of earphone at last.
In an optional implementation manner, when the wearer of the headset does not speak, the microphone and the bluetooth module are both in the sleep state, so that the power consumption of the whole system of the headset is greatly saved, and the duration of the headset is prolonged. In addition, through the comparison of the wake-up keywords, if the wake-up keywords exist in the voice information, the microphone is continuously closed and the operation of the voice recognition algorithm is stopped, so that the power consumption is further reduced, and the endurance time of the earphone is not influenced. If the awakening keyword does not exist in the voice information, the voice command instruction in the voice information is obtained, and/or the Bluetooth module is awakened, so that the interaction between the earphone wearer and the earphone is realized, and the intellectualization of the earphone is improved.
In the technical scheme disclosed in this embodiment, by acquiring the voice command instruction in the collected voice information, and executing the function corresponding to the voice command instruction or sending the voice command instruction to the terminal device connected to the headset, after the function corresponding to the voice command instruction is executed by the terminal device, interaction between a wearer and the headset is realized, and the intellectualization of the headset is improved, and meanwhile, the microphone is controlled to be switched from a working state to a dormant state, so as to achieve the purpose of reducing the energy consumption of the headset and increasing the endurance time of the headset.
Referring to fig. 5, fig. 5 is a flowchart illustrating a voice collecting method for a headset according to a third embodiment of the present invention. In this embodiment, the method for collecting speech of headphones further includes:
s40, when a vibration signal is detected by a vibration detection device of the earphone, acquiring a working mode of the earphone;
step S50, when the working mode of the earphone is a non-conversation mode, the step of controlling the microphone of the earphone to be switched from a dormant state to a working state is executed;
step S60, when the working mode of the earphone is a call mode, detecting a signal of ending the call mode;
and step S70, when the signal of the call mode ending is detected, controlling the microphone to be switched from the working state to the dormant state.
In the practical application process, the microphone of the earphone is not only used for collecting voice information to identify the voice information and acquire a voice command instruction, and then the interaction between a wearer and the earphone is realized through the voice command instruction. When the vibration detection device of the earphone detects a vibration signal, namely a wearer speaks, the current working mode of the earphone is obtained to determine whether the earphone is in a call mode, and when the working mode of the earphone is the call mode, namely the wearer is in the call state, and at the moment, when the microphone is in the working state, the microphone detects a signal of ending the call mode, namely ending the call, so as to avoid that the microphone is continuously in the working state to cause energy consumption increase, and control the microphone to be switched from the working state to the dormant state. Optionally, when receiving an incoming call message, that is, receiving a signal for starting a call mode, the microphone of the headset is controlled to switch from the dormant state to the working state.
When the working mode of the earphone is a non-call mode, that is, the wearer is not in a call state, and the wearer may interact with the earphone through voice information, it can be understood that, when the microphone of the earphone is in a sleep state, the microphone collects the voice information by executing the step of controlling the microphone of the earphone to be switched from the sleep state to the working state, and when the voice information includes a voice command instruction, the interaction between the wearer and the earphone is realized through the voice command instruction, so as to improve the intelligence of the earphone.
In the technical scheme disclosed in this embodiment, when a call is made through the earphone, in order to prevent a wearer from frequently detecting a vibration signal due to intermittent speaking, and thus causing the microphone to frequently switch between a working state and a dormant state, when the wearer detects the vibration signal, that is, the vibration signal is detected by the vibration detection device of the earphone, that is, when the wearer speaks, the current working mode of the earphone is acquired to determine whether the earphone is in a call mode, and when the working mode of the earphone is the call mode, that is, the microphone is in the working state, the microphone is controlled to switch from the working state to the dormant state by detecting a signal indicating that the call mode is ended, that is, the call is ended, so as to prevent the microphone from being continuously in the working state and thus increasing energy consumption.
The invention also provides a headset, which comprises a memory, a processor and a headset voice collecting program which is stored in the memory and can run on the processor, wherein the headset voice collecting program realizes the steps of the headset voice collecting method when being executed by the processor.
The invention further provides a storage medium, wherein the storage medium stores a voice collecting program of the earphone, and the voice collecting program of the earphone is executed by the processor to realize the steps of the voice collecting method of the earphone in any embodiment.
In the embodiments of the headset and the readable storage medium provided by the present invention, all technical features of the embodiments of the headset collection method are included, and the contents of the expansion and the explanation of the specification are basically the same as those of the embodiments of the headset voice collection method, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a mobile terminal (such as a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (4)

1. A method for collecting speech of a headset, the method comprising:
when a vibration signal is detected by a vibration detection device of the earphone, controlling a microphone of the earphone to be switched from a dormant state to a working state;
collecting voice information through the microphone;
after the voice information is collected, controlling the microphone to be switched from the working state to the dormant state;
before the step of controlling the microphone of the earphone to be switched from the dormant state to the working state, the method comprises the following steps:
acquiring the current wearing information of the earphone;
determining that the earphone is in a wearing state according to the wearing information, and controlling a microphone of the earphone to be switched from a dormant state to a working state;
the method for collecting the voice of the earphone further comprises the following steps:
when a vibration signal is detected by a vibration detection device of the earphone, acquiring a working mode of the earphone;
when the working mode of the earphone is a non-call mode, executing the step of controlling the microphone of the earphone to be switched from a dormant state to a working state;
when the working mode of the earphone is a call mode, detecting a signal for ending the call mode;
when a signal of the end of the call mode is detected, controlling the microphone to be switched from the working state to the dormant state;
the step of controlling the microphone to switch from the working state to the dormant state after the voice information collection is completed comprises:
after the voice information is collected, acquiring a voice command instruction corresponding to the voice information;
after executing a function corresponding to the voice command instruction or sending the voice command instruction, controlling the microphone to be switched from the working state to the dormant state;
the step of acquiring the voice command instruction corresponding to the voice information after the voice information is collected comprises the following steps:
after the voice information is collected, recognizing the voice information;
judging whether the voice information contains a wake-up keyword or not;
if the voice information contains the awakening keyword, acquiring a voice command instruction corresponding to the voice information;
if the voice message does not contain the awakening keyword, controlling the microphone to be switched from the working state to the dormant state;
after the step of determining that the voice message contains the wake-up keyword, the method further comprises:
acquiring the state of a Bluetooth module of the earphone;
if the state of the Bluetooth module is a working state, executing the step of acquiring the voice command instruction corresponding to the voice information;
and if the state of the Bluetooth module is a dormant state, waking up the Bluetooth module and executing the step of acquiring the voice command instruction corresponding to the voice information.
2. The method for collecting speech of an earphone according to claim 1, wherein the step of controlling the microphone to switch from the operating state to the dormant state after the speech information collection is completed comprises:
after the voice information is collected, timing is started;
and when the timing duration is longer than the preset duration, controlling the microphone to be switched from the working state to the dormant state.
3. The utility model provides an earphone, its characterized in that, earphone is equipped with vibrations detection device and microphone, earphone includes: memory, a processor and a speech collection program for a headset stored in the memory and executable on the processor, the speech collection program for a headset implementing the steps of the speech collection method for a headset according to any of claims 1-2 when executed by the processor.
4. A readable storage medium, characterized in that the readable storage medium has stored thereon a speech collection program of a headset, which when executed by a processor implements the steps of the speech collection method of a headset according to any of claims 1-2.
CN202110242627.8A 2021-03-04 2021-03-04 Earphone voice collecting method, earphone and readable storage medium Active CN112995833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110242627.8A CN112995833B (en) 2021-03-04 2021-03-04 Earphone voice collecting method, earphone and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110242627.8A CN112995833B (en) 2021-03-04 2021-03-04 Earphone voice collecting method, earphone and readable storage medium

Publications (2)

Publication Number Publication Date
CN112995833A CN112995833A (en) 2021-06-18
CN112995833B true CN112995833B (en) 2023-01-24

Family

ID=76352779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110242627.8A Active CN112995833B (en) 2021-03-04 2021-03-04 Earphone voice collecting method, earphone and readable storage medium

Country Status (1)

Country Link
CN (1) CN112995833B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114120603B (en) * 2021-11-26 2023-08-08 歌尔科技有限公司 Voice control method, earphone and storage medium
CN115361180B (en) * 2022-08-05 2024-04-30 歌尔股份有限公司 Voice processing method based on physical key, electronic equipment, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144377A (en) * 2013-05-09 2014-11-12 Dsp集团有限公司 Low power activation of voice activated device
CN108882087A (en) * 2018-06-12 2018-11-23 歌尔科技有限公司 A kind of intelligent sound detection method, wireless headset, TWS earphone and terminal
CN109348338A (en) * 2018-11-01 2019-02-15 歌尔股份有限公司 A kind of earphone and its playback method
CN112399297A (en) * 2019-08-19 2021-02-23 Oppo广东移动通信有限公司 Earphone, voice awakening method thereof and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144377A (en) * 2013-05-09 2014-11-12 Dsp集团有限公司 Low power activation of voice activated device
CN108882087A (en) * 2018-06-12 2018-11-23 歌尔科技有限公司 A kind of intelligent sound detection method, wireless headset, TWS earphone and terminal
CN109348338A (en) * 2018-11-01 2019-02-15 歌尔股份有限公司 A kind of earphone and its playback method
CN112399297A (en) * 2019-08-19 2021-02-23 Oppo广东移动通信有限公司 Earphone, voice awakening method thereof and computer storage medium

Also Published As

Publication number Publication date
CN112995833A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112995833B (en) Earphone voice collecting method, earphone and readable storage medium
US9326063B2 (en) Microphone with voice wake-up function
CN109121048B (en) True wireless stereo earphone and standby management method and device thereof
WO2018149285A1 (en) Voice wake-up method and apparatus, electronic device, and storage medium
CN108882087A (en) A kind of intelligent sound detection method, wireless headset, TWS earphone and terminal
CN103901782B (en) A kind of acoustic-controlled method, electronic equipment and sound-controlled apparatus
CN107978316A (en) The method and device of control terminal
CN202818560U (en) Bluetooth headset, mobile terminal and voice control system
US20240073577A1 (en) Audio playing method, apparatus and system for in-ear earphone
CN111105796A (en) Wireless earphone control device and control method, and voice control setting method and system
CN104702783B (en) Article searching method and automatic answering system based on voice signal
CN109788387A (en) Control method, bluetooth headset and the computer readable storage medium of bluetooth headset
CN105677004A (en) Terminal processing method and terminal
CN105848037A (en) Headset and terminal device controlling method
CN105630161A (en) Android system-based gesture control ring and using method thereof
CN109151637A (en) Wireless headset, intelligent sound control system and method for wireless headset
CN108307271A (en) A kind of volume adjusting method of smart machine, device and smart machine
CN113096677B (en) Intelligent noise reduction method and related equipment
CN110825235B (en) Earphone sleep monitoring method, device and system
CN105721981A (en) Earphone working method and earphone
WO2020042491A1 (en) Headphone far-field interaction method, headphone far-field interaction accessory, and wireless headphones
CN112995852B (en) Vehicle-mounted wireless earphone system and control method thereof
CN211240062U (en) Wireless earphone device
CN109195044B (en) Noise reduction earphone, call terminal, noise reduction control method and recording method
CN209234023U (en) Communication headset

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