CN115037831A - Mode control method and device, electronic equipment and earphone - Google Patents

Mode control method and device, electronic equipment and earphone Download PDF

Info

Publication number
CN115037831A
CN115037831A CN202110247155.5A CN202110247155A CN115037831A CN 115037831 A CN115037831 A CN 115037831A CN 202110247155 A CN202110247155 A CN 202110247155A CN 115037831 A CN115037831 A CN 115037831A
Authority
CN
China
Prior art keywords
mode
earphone
keyword
noise reduction
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.)
Pending
Application number
CN202110247155.5A
Other languages
Chinese (zh)
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.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen 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 Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202110247155.5A priority Critical patent/CN115037831A/en
Publication of CN115037831A publication Critical patent/CN115037831A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • H04M1/6066Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
    • 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
    • G10L2015/225Feedback of the input speech
    • 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 application relates to the technical field of terminals and discloses a mode control method and device, electronic equipment and an earphone. The mode control method is applied to electronic equipment, the electronic equipment is in communication connection with an earphone, and the method comprises the following steps: receiving voice information sent by an earphone; recognizing voice information, and determining keyword information corresponding to the voice information; acquiring a current earphone mode of an earphone; and if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword. The method and the device for controlling the earphone mode can intelligently control the earphone mode by judging whether the keyword information corresponding to the voice information contains the preset keyword or not and sending a mode switching instruction to the earphone so that the earphone can switch the current earphone mode into the earphone mode corresponding to the preset keyword.

Description

Mode control method and device, electronic equipment and earphone
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a mode control method and apparatus, an electronic device, and an earphone.
Background
With the continuous development of wireless headset technology, more and more users have come to choose to wear wireless headsets in daily life, such as: while earphones are worn for sound insulation during work or for games, listening to music, etc. during ordinary life, earphones are connected to electronic devices, for example: the earphone is connected with the mobile phone, and when a user wears the earphone to listen to music, other information cannot be listened frequently, for example: the sound of surrounding people easily causes some key information to be missed, so how to control the earphones to enhance the interactive experience is a problem to be solved.
At present, the earphone usually avoids the influence of external sound by setting a noise reduction mode, but the noise reduction mode is not targeted, so that some special situations cannot respond in time, and the use experience of a user is influenced. The prior art has at least the following problems: at present, the problem of insufficient interactivity exists in the control of the earphone.
Disclosure of Invention
The embodiment of the application provides a mode control method and device, electronic equipment and an earphone, and the mode control method and device can intelligently control earphone modes.
In a first aspect, an embodiment of the present application provides a mode control method, which is applied to an electronic device, where the electronic device is communicatively connected to an earphone, and the method includes:
receiving voice information sent by an earphone;
recognizing the voice information, and determining keyword information corresponding to the voice information;
acquiring a current earphone mode of an earphone;
if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the current earphone mode to the earphone mode corresponding to the preset keyword.
In some embodiments, before receiving the voice information sent by the headset, the method further comprises:
the method comprises the steps of obtaining a preset keyword library, wherein the preset keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode.
In some embodiments, the predetermined keyword library comprises a first predetermined keyword and a second predetermined keyword, the headphone mode comprises a noise reduction mode and a non-noise reduction mode, the first predetermined keyword corresponds to the non-noise reduction mode, the second predetermined keyword corresponds to the noise reduction mode,
if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword, including:
if the current earphone mode is a noise reduction mode and the voice information is recognized to comprise a first preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to include a second preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the non-noise reduction mode into the noise reduction mode.
In some embodiments, the method further comprises:
and if the keyword information contains a preset keyword and the current earphone mode corresponds to the preset keyword, not sending a mode switching instruction to the earphone.
In a second aspect, an embodiment of the present application provides a mode control method, which is applied to a headset, where the headset is communicatively connected to an electronic device, and the method includes:
acquiring voice information;
sending voice information to the electronic equipment;
sending the current earphone mode to the electronic equipment;
and when a mode switching instruction is received, switching the current earphone mode.
In some embodiments, the earphone mode includes a noise reduction mode and a non-noise reduction mode, and the switching the current earphone mode when receiving the mode switching instruction includes:
if the current earphone mode is the noise reduction mode, switching the current earphone mode into a non-noise reduction mode according to a mode switching instruction;
and if the current earphone mode is the non-noise reduction mode, switching the current earphone mode into the noise reduction mode according to the mode switching instruction.
In a third aspect, an embodiment of the present application provides a mode control method, which is applied to an electronic device, where the electronic device is communicatively connected to an earphone, and the method includes:
acquiring a keyword library, wherein the keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode;
and sending the keyword library to an earphone.
In some embodiments, the method comprises:
and after the keyword library in the electronic equipment is updated, sending the updated keyword library to the earphone so that the earphone updates the stored keyword library.
In a fourth aspect, an embodiment of the present application provides a mode control method, which is applied to a headset, where the headset is communicatively connected to an electronic device, and the method includes:
acquiring voice information;
recognizing the voice information, and determining keyword information corresponding to the voice information;
and if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, switching the current earphone mode into the earphone mode corresponding to the preset keyword.
In some embodiments, the method further comprises:
receiving a keyword library sent by the electronic equipment, wherein the keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode;
and determining whether the keyword information contains preset keywords or not according to the keyword library.
In some embodiments, the keyword library comprises a first predetermined keyword and a second predetermined keyword, the headphone mode comprises a noise reduction mode and a non-noise reduction mode, the first predetermined keyword corresponds to the non-noise reduction mode, the second predetermined keyword corresponds to the noise reduction mode,
if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, switching the current earphone mode into an earphone mode corresponding to the preset keyword, including:
if the current earphone mode is a noise reduction mode and the voice information is recognized to comprise a first preset keyword, switching the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to comprise a second preset keyword, switching the non-noise reduction mode into a noise reduction mode.
In some embodiments, the method further comprises: and if the keyword information contains preset keywords and the current earphone mode corresponds to the preset keywords, keeping the current earphone mode.
In a fifth aspect, an embodiment of the present application provides a mode control apparatus, which is applied to an electronic device, where the electronic device is communicatively connected to a headset, and the apparatus includes:
the voice information receiving unit is used for receiving the voice information sent by the earphone;
the keyword information identification unit is used for identifying the voice information and determining keyword information corresponding to the voice information;
the earphone mode acquisition unit is used for acquiring the current earphone mode of the earphone;
and the mode switching unit is used for sending a mode switching instruction to the earphone if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword.
In some embodiments, the apparatus further comprises:
the device comprises a keyword library obtaining unit, a processing unit and a processing unit, wherein the keyword library obtaining unit is used for obtaining a preset keyword library, the preset keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode.
In some embodiments, the predetermined keyword library comprises a first predetermined keyword and a second predetermined keyword, the headphone mode comprises a noise reduction mode and a non-noise reduction mode, the first predetermined keyword corresponds to the non-noise reduction mode, the second predetermined keyword corresponds to the noise reduction mode,
the mode switching unit is specifically configured to:
if the current earphone mode is the noise reduction mode and the voice information is recognized to comprise a first preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the noise reduction mode to a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to include a second preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the non-noise reduction mode into the noise reduction mode.
In some embodiments, the mode switching unit is further configured to:
and if the keyword information contains preset keywords and the current earphone mode corresponds to the preset keywords, not sending a mode switching instruction to the earphone.
In a sixth aspect, an embodiment of the present application provides a mode control apparatus, applied to a headset, where the headset is communicatively connected to an electronic device, the apparatus includes:
a voice information acquisition unit for acquiring voice information;
the voice information sending unit is used for sending voice information to the electronic equipment;
the earphone mode feedback unit is used for sending the current earphone mode to the electronic equipment;
and the mode switching unit is used for switching the current earphone mode when receiving the mode switching instruction.
In some embodiments, the headphone mode includes a noise reduction mode and a non-noise reduction mode, and the mode switching unit is further configured to:
if the current earphone mode is the noise reduction mode, switching the current earphone mode into a non-noise reduction mode according to a mode switching instruction;
and if the current earphone mode is the non-noise reduction mode, switching the current earphone mode into the noise reduction mode according to the mode switching instruction.
In a seventh aspect, an embodiment of the present application provides a mode control apparatus, which is applied to an electronic device, where the electronic device is communicatively connected to a headset, and the apparatus includes:
the device comprises a keyword library acquisition unit, a processing unit and a processing unit, wherein the keyword library acquisition unit is used for acquiring a keyword library, the keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode;
and the keyword library sending unit is used for sending the keyword library to the earphone.
In some embodiments, the keyword library sending unit is further configured to:
and after the keyword library in the electronic equipment is updated, sending the keyword library to the earphone so that the earphone updates the keyword library stored in the earphone.
In an eighth aspect, an embodiment of the present application provides a mode control apparatus, which is applied to a headset communicatively connected to an electronic device, and the apparatus includes:
a voice information acquisition unit for acquiring voice information;
the keyword information identification unit is used for identifying the voice information and determining keyword information corresponding to the voice information;
and the mode switching unit is used for switching the current earphone mode into the earphone mode corresponding to the preset keyword if the keyword information contains the preset keyword and the current earphone mode does not correspond to the preset keyword.
In some embodiments, the apparatus further comprises:
the keyword library receiving unit is used for receiving a keyword library sent by the electronic equipment, wherein the keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode; the keyword information identification unit is specifically configured to determine whether the keyword information includes a preset keyword according to the keyword library.
In some embodiments, the keyword library comprises a first predetermined keyword and a second predetermined keyword, the headphone mode comprises a noise reduction mode and a non-noise reduction mode, the first predetermined keyword corresponds to the non-noise reduction mode, the second predetermined keyword corresponds to the noise reduction mode,
the mode switching unit is specifically configured to:
if the current earphone mode is a noise reduction mode and the voice information is recognized to comprise a first preset keyword, switching the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to comprise a second preset keyword, switching the non-noise reduction mode into a noise reduction mode.
In some embodiments, the mode switching unit is further configured to: and if the keyword information contains preset keywords and the current earphone mode corresponds to the preset keywords, keeping the current earphone mode.
In a ninth aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the mode control method of the first or third aspect as described above.
In a tenth aspect, an embodiment of the present application provides a headset, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the mode control method of the second or fourth aspect as described above.
In an eleventh aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer-executable instructions for causing an electronic device to perform the mode control method according to the first aspect or the third aspect.
In a twelfth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer-executable instructions for causing a headset to perform the mode control method as described in the second or fourth aspect above.
In a thirteenth aspect, embodiments of the present application provide a computer program, the computer program comprising program instructions that, when executed by one or more processors in an electronic device, cause the electronic device to perform the mode control method of the first or third aspect.
In a fourteenth aspect, embodiments of the present application provide a computer program comprising program instructions that, when executed by one or more processors in a headset, cause the headset to perform the mode control method of the second or fourth aspect.
The beneficial effects of the embodiment of the application are that: different from the prior art, the mode control method provided in the embodiment of the present application determines whether the keyword information corresponding to the voice information includes a preset keyword, and if the keyword information includes the preset keyword and the current headset mode does not correspond to the preset keyword, sends a mode switching instruction to the headset, so that the headset switches the current headset mode to the headset mode corresponding to the preset keyword.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which are not to be construed as limiting the embodiments, in which elements having the same reference numerals are identified as similar elements or modules, and in which the drawings are not to be construed as limited, unless expressly stated to the scale.
Fig. 1 is a schematic diagram of a communication system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a mode control method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another mode control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a mode control method according to a second embodiment of the present application;
fig. 5 is a schematic flowchart of another mode control method provided in the second embodiment of the present application;
fig. 6 is a schematic structural diagram of a mode control device according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of another mode control device provided in the third embodiment of the present application;
fig. 8 is a schematic structural diagram of a mode control device according to a fourth embodiment of the present application;
fig. 9 is a schematic structural diagram of another mode control device according to a fourth embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application;
fig. 11 is a schematic structural diagram of an earphone according to a sixth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. 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 application.
It should be noted that, if not conflicting, the individual features of the embodiments of the present application may be combined with each other within the scope of protection of the present application. Additionally, while functional block divisions are performed in device schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in a different order than the block divisions in devices, or in flowcharts. In addition, the words "first", "second", "third", and the like used herein do not limit the data and execution order, but merely distinguish the same items or similar items having substantially the same functions and actions.
Before the present application is explained in detail, terms and expressions referred to in the embodiments of the present application are explained, and the terms and expressions referred to in the embodiments of the present application are applied to the following explanations.
(1) The headphone mode refers to a current operating mode of the headphone, and includes a noise reduction mode and a non-noise reduction mode, where the noise reduction mode is a mode in a playing state, and the non-noise reduction mode may include multiple modes, for example: a silent mode, a non-noise reduction play mode and the like.
In the embodiment of the present application, the electronic device may be a mobile terminal, and may also be a Personal Computer (PC), and the mobile terminal may be a hardware device with various operating systems, such as a smart phone, a tablet Computer, a Personal digital assistant, and a stereo. The electronic device is required to be provided with a communication module to realize direct communication with the earphone, and it can be understood that the electronic device further comprises a communication module such as a baseband and the like to realize a communication function with other electronic devices.
Referring to fig. 1, fig. 1 is a schematic diagram of a communication system according to an embodiment of the present disclosure;
as shown in fig. 1, the communication system includes an electronic device and earphones, where the earphones include a left earphone and a right earphone, where the electronic device is in communication connection with the left earphone and the right earphone through bluetooth, and is configured to implement communication connection between the electronic device and the left earphone and the right earphone, so that the electronic device and the left earphone and the right earphone can perform data transmission. The left earphone and the right earphone are also in communication connection through Bluetooth to achieve data transmission between the left earphone and the right earphone. It can be understood that the electronic device, the left earphone and the right earphone each include a communication module, wherein the electronic device further includes other components such as a touch screen, which belong to the category of the prior art and are not described herein again.
Example one
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a mode control method according to an embodiment of the present disclosure;
in this embodiment, the headset includes a wireless headset, for example: the Bluetooth headset particularly comprises at least one processor of the electronic equipment as an execution main body of the mode control method.
As shown in fig. 2, the mode control method includes:
step S201: receiving voice information sent by an earphone;
specifically, the earphone comprises a radio receiving unit for receiving voice information, wherein the voice information is the voice information of the user himself or other users, the earphone comprises a first earphone and a second earphone, namely a left earphone and a right earphone, the left earphone comprises the first radio receiving unit, the right earphone comprises the second radio receiving unit, and the voice information is acquired by the first radio receiving unit and/or the second radio receiving unit.
Step S202: recognizing the voice information, and determining keyword information corresponding to the voice information;
specifically, the electronic device receives voice information sent by the headset, converts the voice information into text information, and identifies the text information to determine keyword information in the text information, where the keyword information includes words, for example: nouns, verbs, etc.
Step S203: and acquiring the current earphone mode of the earphone.
Specifically, when the electronic device is in communication connection with the headset, the electronic device may obtain the current headset mode of the headset from the headset in a request manner, or the headset may actively feed back the current headset mode of the headset to the electronic device. Wherein the headset mode may include a noise reduction mode and a non-noise reduction mode.
Step S204: and if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword.
And if the keyword information contains a preset keyword and the current earphone mode corresponds to the preset keyword, not sending a mode switching instruction to the earphone.
The preset keywords are preset by a user, for example: and receiving keywords input by a user and establishing a preset keyword library.
Specifically, a preset keyword library is obtained, where the preset keyword library includes at least one preset keyword, and each keyword corresponds to one earphone mode.
Specifically, the preset keyword library includes a first preset keyword and a second preset keyword, the earphone mode includes a noise reduction mode and a non-noise reduction mode, the first preset keyword corresponds to the non-noise reduction mode, the second preset keyword corresponds to the noise reduction mode, if the keyword information includes a preset keyword, and the current earphone mode does not correspond to the preset keyword, a mode switching instruction is sent to the earphone, so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword, including:
if the current earphone mode is a noise reduction mode and the voice information is recognized to comprise a first preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to comprise a second preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the non-noise reduction mode into the noise reduction mode.
Specifically, each word in the keyword information is compared with the preset keyword library, if at least one word is successfully compared, the existence of the preset keyword is proved, and further, whether the voice information contains the first preset keyword or the second preset keyword is determined according to whether the successfully compared word belongs to the first preset keyword or the second preset keyword.
Referring to fig. 3 again, fig. 3 is a schematic flowchart of another mode control method according to an embodiment of the present disclosure; the mode control method is applied to earphones which are in communication connection with electronic equipment.
As shown in fig. 3, the mode control method includes:
step S301: and acquiring voice information.
Specifically, the earphone includes a radio unit for acquiring voice information, where the voice information is voice information of the user himself or another user, the earphone includes a first earphone and a second earphone, that is, a left earphone and a right earphone, where the left earphone includes the first radio unit, the right earphone includes the second radio unit, and the voice information is acquired by the first radio unit and/or the second radio unit.
Step S302: and sending the voice information to the electronic equipment.
Specifically, the earphone can transmit the acquired voice information to the electronic device in real time.
Step S303: and when a mode switching instruction is received, switching the current earphone mode.
Specifically, the earphone mode includes a noise reduction mode and a non-noise reduction mode, and when a mode switching instruction is received, switching the current earphone mode includes:
if the current earphone mode is the noise reduction mode, switching the current earphone mode into a non-noise reduction mode according to a mode switching instruction;
and if the current earphone mode is the non-noise reduction mode, switching the current earphone mode into the noise reduction mode according to the mode switching instruction.
In other modified embodiments of the present application, the mode control method further includes: when the mode switching instruction is not received, the current earphone mode is maintained.
In the embodiment of the application, when the earphone receives the mode switching instruction, the earphone mode is switched by combining the current earphone mode, and the mode can be switched better so as to improve the use experience of a user.
Example two
Referring to fig. 4 again, fig. 4 is a schematic flowchart of a mode control method according to a second embodiment of the present application; the mode control method is applied to an electronic device, where the electronic device is communicatively connected to an earphone, and in this embodiment, the earphone includes a wireless earphone, for example: the Bluetooth headset specifically comprises at least one processor of the electronic device as an execution main body of the mode control method.
As shown in fig. 4, the mode control method includes:
step S401: and acquiring a keyword library.
The keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode;
step S402: sending a preset keyword library to the earphone;
specifically, the earphone is provided with a storage unit and a processing unit, the storage unit is used for storing the preset keyword library, and the processing unit is used for recognizing the voice information to obtain keyword information and judging whether the keyword information contains preset keywords according to the keyword library;
in the embodiment of the present application, the storage unit is in communication connection with the processing unit, where it can be understood that the headset in the embodiment of the present application includes a left headset and a right headset, and when one of the left headset and the right headset is not in a wearing state, there is no necessity for switching between a noise reduction mode and a non-noise reduction mode, so in order to enable the mode control method in the embodiment of the present application to be smoothly executed, the embodiment of the present application sets the storage unit or the processing unit in the left headset or the right headset, respectively, for example: the method comprises the steps that a processing unit is arranged in the left earphone, a storage unit is arranged in the right earphone, or the storage unit is arranged in the left earphone, the processing unit is arranged in the right earphone, and when any one of the left earphone and the right earphone is not in a wearing state or a working state, the processing unit and the storage unit cannot work cooperatively, so that the mode control method in the embodiment of the application is guaranteed to be carried out smoothly.
In an embodiment of the present application, the method further includes:
and after the keyword library in the electronic equipment is updated, sending the updated keyword library to the earphone so that the earphone updates the stored keyword library.
Specifically, after the keyword library in the electronic device is updated, the electronic device sends the updated keyword library to the headset, so that the storage unit of the headset updates the stored keyword library.
In the embodiment of the application, the storage unit and the processing unit are added into the earphone, so that judgment can be completed by the earphone by sending the preset keyword library to the earphone, and then mode switching is carried out.
Referring to fig. 5, fig. 5 is a flowchart of another mode control method according to a second embodiment of the present application; the mode control method is applied to the earphone, and particularly applied to one or more processors of the earphone.
As shown in fig. 5, the mode control method includes:
step S501: acquiring voice information;
specifically, the earphone comprises a radio receiving unit for receiving voice information, wherein the voice information is the voice information of the user himself or other users, the earphone comprises a first earphone and a second earphone, namely a left earphone and a right earphone, the left earphone comprises the first radio receiving unit, the right earphone comprises the second radio receiving unit, and the voice information is acquired by the first radio receiving unit and/or the second radio receiving unit.
Step S502: recognizing the voice information, and determining keyword information corresponding to the voice information;
specifically, after acquiring the voice information, the headset converts the voice information into text information, and identifies the text information to determine keyword information in the text information, where the keyword information includes words, for example: nouns, verbs, etc.
Step S503: and if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, switching the current earphone mode into the earphone mode corresponding to the preset keyword.
Specifically, after determining the keyword information corresponding to the voice information, and when the current headset mode does not correspond to the preset keyword, switching the current headset mode to the headset mode corresponding to the preset keyword, where the preset keyword library includes at least one preset keyword, and each keyword corresponds to one headset mode.
Specifically, the preset keyword library comprises a first preset keyword and a second preset keyword, the earphone mode comprises a noise reduction mode and a non-noise reduction mode, the first preset keyword corresponds to the non-noise reduction mode, the second preset keyword corresponds to the noise reduction mode,
if the keyword information includes a preset keyword and the current headset mode does not correspond to the preset keyword, switching the current headset mode to a headset mode corresponding to the preset keyword, including:
if the current earphone mode is the noise reduction mode and the voice information is recognized to comprise a first preset keyword, switching the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to comprise a second preset keyword, switching the non-noise reduction mode into a noise reduction mode.
Specifically, each word in the keyword information is compared with the preset keyword library, if at least one word is successfully compared, the existence of the preset keyword is proved, and further, whether the voice information contains the first preset keyword or the second preset keyword is determined according to whether the successfully compared word belongs to the first preset keyword or the second preset keyword.
In an embodiment of the present application, the method further includes:
and if the keyword information contains preset keywords and the current earphone mode corresponds to the preset keywords, keeping the current earphone mode.
Specifically, the earphone is provided with a storage unit and a processing unit, the storage unit is used for storing the preset keyword library, the processing unit is used for identifying the voice information to obtain keyword information, and judging whether the keyword information contains preset keywords according to the keyword library;
in the embodiment of the present application, the storage unit is in communication connection with the processing unit, where it can be understood that the headset in the embodiment of the present application includes a left headset and a right headset, and when one of the left headset and the right headset is not in a wearing state, there is no necessity for switching between a noise reduction mode and a non-noise reduction mode, so in order to enable the mode control method in the embodiment of the present application to be smoothly executed, the embodiment of the present application sets the storage unit or the processing unit in the left headset or the right headset, respectively, for example: the method comprises the steps that a processing unit is arranged in the left earphone, a storage unit is arranged in the right earphone, or the storage unit is arranged in the left earphone, the processing unit is arranged in the right earphone, and when any one of the left earphone and the right earphone is not in a wearing state or a working state, the processing unit and the storage unit cannot work cooperatively, so that the mode control method in the embodiment of the application is guaranteed to be smoothly carried out.
The processing unit of the earphone judges whether the keyword information contains a preset keyword or not according to the keyword library stored in the storage unit, specifically, each word in the keyword information is compared with the preset keyword library, and if at least one word is successfully compared, the existence of the preset keyword is proved.
According to the mode control method provided by the embodiment of the application, the voice information is obtained through the earphone and the keyword information is obtained through recognition, and when the current earphone mode does not correspond to the preset keyword, the current earphone mode is switched to the earphone mode corresponding to the preset keyword. The method and the device can improve the interactivity of the earphone control.
EXAMPLE III
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mode control device according to a third embodiment of the present application; the mode control apparatus 60 is applied to an electronic device, and more particularly, to one or more processors of the electronic device.
As shown in fig. 6, the mode control apparatus 60 is applied to an electronic device, and includes:
a voice information receiving unit 61 for receiving voice information sent by the earphone;
a keyword information recognition unit 62, configured to recognize the voice information and determine keyword information corresponding to the voice information;
an earphone mode acquiring unit 63, configured to acquire a current earphone mode of the earphone;
and a mode switching unit 64, configured to send a mode switching instruction to the headset if the keyword information includes a preset keyword and the current headset mode does not correspond to the preset keyword, so that the headset switches the current headset mode to the headset mode corresponding to the preset keyword.
In an embodiment of the present application, the apparatus further includes:
a keyword library obtaining unit (not shown) configured to obtain a preset keyword library, where the preset keyword library includes at least one preset keyword, and each keyword corresponds to one earphone mode.
In this application embodiment, the preset keyword library includes a first preset keyword and a second preset keyword, the earphone mode includes a noise reduction mode and a non-noise reduction mode, the first preset keyword corresponds to the non-noise reduction mode, the second preset keyword corresponds to the noise reduction mode, and the mode switching unit is specifically configured to:
if the current earphone mode is a noise reduction mode and the voice information is recognized to comprise a first preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to comprise a second preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the non-noise reduction mode into the noise reduction mode.
Specifically, each word in the keyword information is compared with the preset keyword library, if at least one word is successfully compared, the existence of the preset keyword is proved, and further, whether the voice information contains the first preset keyword or the second preset keyword is determined according to whether the successfully compared word belongs to the first preset keyword or the second preset keyword.
The mode switching unit is further configured to:
and if the keyword information contains a preset keyword and the current earphone mode corresponds to the preset keyword, not sending a mode switching instruction to the earphone.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another mode control device according to a third embodiment of the present application; the mode control apparatus 70 is applicable to a headset, and more particularly, to one or more processors of the headset, which is communicatively coupled to an electronic device.
As shown in fig. 7, the mode control device 70 includes:
a voice information acquisition unit 71 for acquiring voice information.
The voice information is the voice information of the user or other users.
A voice information sending unit 72 for sending voice information to the electronic device.
Specifically, the voice information transmitting unit 72 may transmit the acquired voice information to the electronic device in real time.
And an earphone mode feedback unit 73, configured to send the current earphone mode to the electronic device.
And a mode switching unit 74 for switching the current earphone mode when receiving the mode switching instruction.
Specifically, the earphone mode includes a noise reduction mode and a non-noise reduction mode, and when a mode switching instruction is received, the current earphone mode is switched, including:
if the current earphone mode is the noise reduction mode, switching the current earphone mode into a non-noise reduction mode according to a mode switching instruction;
and if the current earphone mode is the non-noise reduction mode, switching the current earphone mode into the noise reduction mode according to the mode switching instruction.
In the embodiment of the application, when the earphone receives the mode switching instruction, the earphone mode is switched by combining the current earphone mode, and the mode can be switched better so as to improve the use experience of a user.
It should be noted that, the apparatus described in the third embodiment can execute the mode control method provided in the first embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in the device embodiments, reference may be made to the mode control method provided in the first embodiment of the present application.
Example four
Referring to fig. 8, fig. 8 is a schematic structural diagram of a mode control device according to a fourth embodiment of the present application; the mode control apparatus 80 is applied to an electronic device, and in particular, to one or more processors of the electronic device.
As shown in fig. 8, the mode control device 80 includes:
a keyword library obtaining unit 81 is configured to obtain a keyword library.
The keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode.
And a keyword library sending unit 82, configured to send a preset keyword library to the headset.
In this embodiment of the application, the keyword library sending unit 82 is further configured to:
and after the keyword library in the electronic equipment is updated, sending the updated keyword library to the earphone so that the storage unit of the earphone updates the stored keyword library.
Referring to fig. 9, fig. 9 is a schematic structural diagram of another mode control device according to a fourth embodiment of the present application; the mode control apparatus 90 is applied to a headset, and more particularly, to one or more processors of the headset, which is communicatively connected to an electronic device.
As shown in fig. 9, the mode control device 90 includes:
a voice information acquisition unit 91 for acquiring voice information;
a keyword information recognition unit 92, configured to recognize the voice information, and determine keyword information corresponding to the voice information;
and a mode switching unit 93, configured to switch the current earphone mode to an earphone mode corresponding to the preset keyword if the keyword information includes the preset keyword and the current earphone mode does not correspond to the preset keyword.
In a modified embodiment of this embodiment, the mode control device 90 further includes:
a keyword library receiving unit (not shown) for receiving the keyword library sent by the electronic device.
The keyword information recognition unit 92 may determine whether the keyword information includes a preset keyword according to the keyword library.
In a variation of this embodiment, the keyword library comprises a first predetermined keyword and a second predetermined keyword, the headphone mode comprises a noise reduction mode and a non-noise reduction mode, the first predetermined keyword corresponds to the non-noise reduction mode, the second predetermined keyword corresponds to the noise reduction mode,
the mode switching unit is specifically configured to:
if the current earphone mode is the noise reduction mode and the voice information is recognized to comprise a first preset keyword, switching the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to comprise a second preset keyword, switching the non-noise reduction mode into a noise reduction mode.
In a modified embodiment of this embodiment, the mode switching unit is further configured to: and if the keyword information contains preset keywords and the current earphone mode corresponds to the preset keywords, keeping the current earphone mode.
It should be noted that the apparatus described in the fourth embodiment can execute the mode control method provided in the second embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For details of the apparatus embodiment, reference may be made to the mode control method provided in the second embodiment of the present application.
EXAMPLE five
Referring to fig. 10, fig. 10 is a schematic diagram of a hardware structure of an electronic device according to various embodiments of the present application;
as shown in fig. 10, the electronic device 100 includes, but is not limited to: the electronic device 100 further includes a camera, and the electronic device includes a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 1010, a power supply 1011, and the like. Those skilled in the art will appreciate that the configuration of the electronic device shown in fig. 10 does not constitute a limitation of the electronic device, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present application, the electronic device includes, but is not limited to, a television, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 1010, configured to receive voice information sent by the headset; recognizing voice information, and determining keyword information corresponding to the voice information; acquiring a current earphone mode of an earphone; and if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword. By judging whether the keyword information corresponding to the voice information contains the preset keyword or not, if the keyword information contains the preset keyword and the current earphone mode does not correspond to the preset keyword, a mode switching instruction is sent to the earphone, so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword.
It should be understood that, in the embodiment of the present application, the radio frequency unit 101 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 1010; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device 100 provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes a target image of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of the phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1010, and receives and executes commands sent by the processor 1010. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 10, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and an external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, wherein the program storage area may store an application program 1091 (such as a sound playing function, an image playing function, etc.) and an operating system 1092, etc. required by at least one function; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, etc. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1010 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The electronic device 100 may further include a power source 1011 (e.g., a battery) for supplying power to various components, and preferably, the power source 1011 may be logically connected to the processor 1010 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an electronic device is further provided in this embodiment of the present application, and includes a processor 1010, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 1010, where the computer program is executed by the processor 1010 to implement each process of the above embodiment of the mode control method, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
Example six
Referring to fig. 11 again, fig. 11 is a schematic structural diagram of an earphone according to various embodiments of the present application;
as shown in fig. 11, the earphone 110 includes:
one or more processors 111 and memory 112, with one processor 111 being an example in fig. 11. The processor 111 and the memory 112 may be connected by a bus or other means, such as the bus connection in fig. 11.
A processor 111 for acquiring voice information; recognizing voice information, and determining keyword information corresponding to the voice information; and if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, switching the current earphone mode into the earphone mode corresponding to the preset keyword. And acquiring voice information through the earphone, identifying to obtain keyword information, and switching the current earphone mode into the earphone mode corresponding to the preset keyword when the current earphone mode does not correspond to the preset keyword. The method and the device can improve the interactivity of the earphone control.
The memory 112, which is a non-volatile computer-readable storage medium, may be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the mode control method in the embodiments of the present application. The processor 111 executes various functional applications of the server and data processing by running nonvolatile software programs, instructions, and modules stored in the memory 112, that is, implements the mode control method in the above-described method embodiment.
The memory 112 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device for voice-controlling the smart home appliance, and the like. Further, the memory 112 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 112 may optionally include memory located remotely from the processor 111, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 112 and, when executed by the one or more processors 111, perform the mode control method of one or both embodiments of the present application.
The product can execute the mode control method provided by each embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For details of the mode control method provided in the embodiments of the present application, reference may be made to the following description.
The headset of the embodiments of the present application exists in a variety of forms, including but not limited to: wired headphones, wireless headphones, wherein the wireless headphones include bluetooth headphones, for example: true Wireless bluetooth headsets (TWS).
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by one or more processors, the computer program implements each process of the above-mentioned mode control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-described embodiments of the apparatus or device are only schematic, where the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on multiple network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
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 solutions of the present application may be substantially or partially embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., mobile terminal, personal computer, server, or network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it should be noted that: the embodiments described above with reference to the drawings are only for illustrating the technical solutions of the present application, and the present application is not limited to the above-mentioned specific embodiments, which are only illustrative and not restrictive; within the context of the present application, where technical features in the above embodiments or in different embodiments can also be combined, the steps can be implemented in any order and there are many other variations of the different aspects of the present application as described above, which are not provided in detail for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (18)

1. A mode control method applied to an electronic device, the electronic device being in communication connection with a headset, the method comprising:
receiving voice information sent by an earphone;
recognizing the voice information, and determining keyword information corresponding to the voice information;
acquiring a current earphone mode of an earphone;
and if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword.
2. The method of claim 1, wherein prior to receiving the voice information sent by the headset, the method further comprises:
the method comprises the steps of obtaining a preset keyword library, wherein the preset keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode.
3. The method of claim 2, wherein the predetermined keyword library comprises a first predetermined keyword and a second predetermined keyword, the headset mode comprises a noise reduction mode and a non-noise reduction mode, the first predetermined keyword corresponds to the non-noise reduction mode, the second predetermined keyword corresponds to the noise reduction mode,
if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the current earphone mode to the earphone mode corresponding to the preset keyword, wherein the method comprises the following steps:
if the current earphone mode is a noise reduction mode and the voice information is recognized to comprise a first preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to include a second preset keyword, sending a mode switching instruction to the earphone so that the earphone switches the non-noise reduction mode into the noise reduction mode.
4. The method according to any one of claims 1-3, further comprising: and if the keyword information contains a preset keyword and the current earphone mode corresponds to the preset keyword, not sending a mode switching instruction to the earphone.
5. A mode control method for a headset communicatively coupled to an electronic device, the method comprising:
acquiring voice information;
sending voice information to the electronic equipment;
sending the current earphone mode to the electronic equipment;
and when a mode switching instruction is received, switching the current earphone mode.
6. The method of claim 5, wherein the headset mode comprises a noise reduction mode and a non-noise reduction mode, and wherein switching the current headset mode when receiving the mode switching instruction comprises:
if the current earphone mode is the noise reduction mode, switching the current earphone mode into a non-noise reduction mode according to a mode switching instruction;
and if the current earphone mode is the non-noise reduction mode, switching the current earphone mode into the noise reduction mode according to the mode switching instruction.
7. A mode control method applied to an electronic device, the electronic device being in communication connection with a headset, the method comprising:
acquiring a keyword library, wherein the keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode;
and sending the keyword library to a headset.
8. The method of claim 7, wherein the method comprises:
and after the keyword library in the electronic equipment is updated, sending the updated keyword library to the earphone so that the earphone updates the stored keyword library.
9. A mode control method for a headset communicatively coupled to an electronic device, the method comprising:
acquiring voice information;
recognizing the voice information, and determining keyword information corresponding to the voice information;
and if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, switching the current earphone mode into the earphone mode corresponding to the preset keyword.
10. The method of claim 9, further comprising:
receiving a keyword library sent by the electronic equipment, wherein the keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode;
and determining whether the keyword information contains preset keywords or not according to the keyword library.
11. The method of claim 10, wherein the keyword library comprises a first predetermined keyword and a second predetermined keyword, wherein the headphone mode comprises a noise reduction mode and a non-noise reduction mode, wherein the first predetermined keyword corresponds to the non-noise reduction mode, wherein the second predetermined keyword corresponds to the noise reduction mode,
if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, switching the current earphone mode into an earphone mode corresponding to the preset keyword, including:
if the current earphone mode is a noise reduction mode and the voice information is recognized to comprise a first preset keyword, switching the noise reduction mode into a non-noise reduction mode;
and if the current earphone mode is a non-noise reduction mode and the voice information is recognized to comprise a second preset keyword, switching the non-noise reduction mode into a noise reduction mode.
12. The method according to any one of claims 9-11, further comprising: if the keyword information contains a preset keyword and the current earphone mode corresponds to the preset keyword, keeping the current earphone mode.
13. A mode control apparatus for an electronic device communicatively coupled to a headset, the apparatus comprising:
the voice information receiving unit is used for receiving the voice information sent by the earphone;
the keyword information identification unit is used for identifying the voice information and determining keyword information corresponding to the voice information;
the earphone mode acquisition unit is used for acquiring the current earphone mode of the earphone;
and the mode switching unit is used for sending a mode switching instruction to the earphone if the keyword information contains a preset keyword and the current earphone mode does not correspond to the preset keyword, so that the earphone switches the current earphone mode into the earphone mode corresponding to the preset keyword.
14. A mode control apparatus for use with a headset communicatively coupled to an electronic device, the apparatus comprising:
a voice information acquisition unit for acquiring voice information;
the voice information sending unit is used for sending voice information to the electronic equipment;
the earphone mode feedback unit is used for sending the current earphone mode to the electronic equipment;
and the mode switching unit is used for switching the current earphone mode when receiving the mode switching instruction.
15. A mode control apparatus for an electronic device communicatively coupled to a headset, the apparatus comprising:
the device comprises a keyword library acquisition unit, a processing unit and a processing unit, wherein the keyword library acquisition unit is used for acquiring a keyword library, the keyword library comprises at least one preset keyword, and each keyword corresponds to one earphone mode;
and the keyword library sending unit is used for sending the keyword library to the earphone.
16. A mode control apparatus for a headset communicatively coupled to an electronic device, the apparatus comprising:
a voice information acquisition unit for acquiring voice information;
the keyword information identification unit is used for identifying the voice information and determining keyword information corresponding to the voice information;
and the mode switching unit is used for switching the current earphone mode into the earphone mode corresponding to the preset keyword if the keyword information contains the preset keyword and the current earphone mode does not correspond to the preset keyword.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the mode control method of any one of claims 1-4, 7-8.
18. An earphone, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the mode control method of any one of claims 5-6, 9-12.
CN202110247155.5A 2021-03-05 2021-03-05 Mode control method and device, electronic equipment and earphone Pending CN115037831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110247155.5A CN115037831A (en) 2021-03-05 2021-03-05 Mode control method and device, electronic equipment and earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110247155.5A CN115037831A (en) 2021-03-05 2021-03-05 Mode control method and device, electronic equipment and earphone

Publications (1)

Publication Number Publication Date
CN115037831A true CN115037831A (en) 2022-09-09

Family

ID=83118168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110247155.5A Pending CN115037831A (en) 2021-03-05 2021-03-05 Mode control method and device, electronic equipment and earphone

Country Status (1)

Country Link
CN (1) CN115037831A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810814A (en) * 2021-08-17 2021-12-17 百度在线网络技术(北京)有限公司 Earphone mode switching control method and device, electronic equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101442027B1 (en) * 2013-04-29 2014-09-25 (주)다하미 커뮤니케이션즈 Sound processing system to recognize earphones for portable devices using sound patterns, mathod for recognizing earphone for portable devices using sound patterns, and mathod for sound processing using thereof
JP2015019400A (en) * 2014-09-05 2015-01-29 泰章 岩井 Information processing system and information processing method
CN105554664A (en) * 2015-12-22 2016-05-04 王晓晖 Headset based sound processing method and apparatus, and headset
CN105635878A (en) * 2016-02-03 2016-06-01 深圳市汇顶科技股份有限公司 Switching method of earphone working modes and earphone
CN206490796U (en) * 2016-08-16 2017-09-12 北京金锐德路科技有限公司 Acoustic control intelligent earphone
CN107564523A (en) * 2017-09-28 2018-01-09 歌尔科技有限公司 A kind of earphone receiving method, apparatus and earphone
CN108429963A (en) * 2018-05-08 2018-08-21 歌尔股份有限公司 A kind of earphone and noise-reduction method
WO2019004762A1 (en) * 2017-06-29 2019-01-03 네이버 주식회사 Method and device for providing interpretation function by using earset
CN109243445A (en) * 2018-09-30 2019-01-18 Oppo广东移动通信有限公司 Sound control method, device, electronic equipment and storage medium
CN109413526A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Headset control method, device, electronic equipment and storage medium
CN110493678A (en) * 2019-08-14 2019-11-22 Oppo(重庆)智能科技有限公司 The control method and device of earphone
CN111405105A (en) * 2020-03-20 2020-07-10 深圳市未艾智能有限公司 Method and apparatus for controlling bluetooth headset, and storage medium
CN111464905A (en) * 2020-04-09 2020-07-28 电子科技大学 Hearing enhancement method and system based on intelligent wearable device and wearable device
CN111462746A (en) * 2020-04-08 2020-07-28 歌尔科技有限公司 TWS earphone-based control method, system, device and equipment
WO2021003955A1 (en) * 2019-07-10 2021-01-14 深圳壹账通智能科技有限公司 Method and device for controlling playback state of earphone, mobile terminal and storage medium
CN112230877A (en) * 2020-10-16 2021-01-15 惠州Tcl移动通信有限公司 Voice operation method and device, storage medium and electronic equipment

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101442027B1 (en) * 2013-04-29 2014-09-25 (주)다하미 커뮤니케이션즈 Sound processing system to recognize earphones for portable devices using sound patterns, mathod for recognizing earphone for portable devices using sound patterns, and mathod for sound processing using thereof
JP2015019400A (en) * 2014-09-05 2015-01-29 泰章 岩井 Information processing system and information processing method
CN105554664A (en) * 2015-12-22 2016-05-04 王晓晖 Headset based sound processing method and apparatus, and headset
CN105635878A (en) * 2016-02-03 2016-06-01 深圳市汇顶科技股份有限公司 Switching method of earphone working modes and earphone
CN206490796U (en) * 2016-08-16 2017-09-12 北京金锐德路科技有限公司 Acoustic control intelligent earphone
WO2019004762A1 (en) * 2017-06-29 2019-01-03 네이버 주식회사 Method and device for providing interpretation function by using earset
CN107564523A (en) * 2017-09-28 2018-01-09 歌尔科技有限公司 A kind of earphone receiving method, apparatus and earphone
CN108429963A (en) * 2018-05-08 2018-08-21 歌尔股份有限公司 A kind of earphone and noise-reduction method
CN109243445A (en) * 2018-09-30 2019-01-18 Oppo广东移动通信有限公司 Sound control method, device, electronic equipment and storage medium
CN109413526A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Headset control method, device, electronic equipment and storage medium
WO2021003955A1 (en) * 2019-07-10 2021-01-14 深圳壹账通智能科技有限公司 Method and device for controlling playback state of earphone, mobile terminal and storage medium
CN110493678A (en) * 2019-08-14 2019-11-22 Oppo(重庆)智能科技有限公司 The control method and device of earphone
CN111405105A (en) * 2020-03-20 2020-07-10 深圳市未艾智能有限公司 Method and apparatus for controlling bluetooth headset, and storage medium
CN111462746A (en) * 2020-04-08 2020-07-28 歌尔科技有限公司 TWS earphone-based control method, system, device and equipment
CN111464905A (en) * 2020-04-09 2020-07-28 电子科技大学 Hearing enhancement method and system based on intelligent wearable device and wearable device
CN112230877A (en) * 2020-10-16 2021-01-15 惠州Tcl移动通信有限公司 Voice operation method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810814A (en) * 2021-08-17 2021-12-17 百度在线网络技术(北京)有限公司 Earphone mode switching control method and device, electronic equipment and storage medium
CN113810814B (en) * 2021-08-17 2023-12-01 百度在线网络技术(北京)有限公司 Earphone mode switching control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107613131B (en) Application program disturbance-free method, mobile terminal and computer-readable storage medium
CN111083684A (en) Method for controlling electronic equipment and electronic equipment
CN108322599B (en) Network access method and mobile terminal
CN109151367B (en) Video call method and terminal equipment
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN108683980B (en) Audio signal transmission method and mobile terminal
CN109189303B (en) Text editing method and mobile terminal
WO2021129835A1 (en) Volume control method and device, and computer-readable storage medium
CN111078186A (en) Playing method and electronic equipment
CN109639738B (en) Voice data transmission method and terminal equipment
CN110191426B (en) Information sharing method and terminal
CN111683171A (en) Audio output method and electronic equipment
CN111061404A (en) Control method and first electronic device
EP4138375A1 (en) Audio output mode switching method and electronic device
WO2021197311A1 (en) Volume adjustment display method and electronic apparatus
CN110673761B (en) Touch key detection method and terminal equipment thereof
CN110324494B (en) Terminal device operation method and related device
CN110545351B (en) Incoming call processing method, electronic equipment and computer readable storage medium
CN110213439B (en) Message processing method and terminal
CN109451154B (en) Method for setting multimedia file and terminal equipment
CN115037831A (en) Mode control method and device, electronic equipment and earphone
CN108089799B (en) Control method of screen edge control and mobile terminal
CN110855550B (en) Communication method, electronic device, and storage medium
CN109309758B (en) Audio processing device, terminal equipment and signal processing method

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