CN108307011B - Electronic device, control method and storage medium thereof - Google Patents
Electronic device, control method and storage medium thereof Download PDFInfo
- Publication number
- CN108307011B CN108307011B CN201810023519.XA CN201810023519A CN108307011B CN 108307011 B CN108307011 B CN 108307011B CN 201810023519 A CN201810023519 A CN 201810023519A CN 108307011 B CN108307011 B CN 108307011B
- Authority
- CN
- China
- Prior art keywords
- storage drawer
- electronic device
- microphone
- box body
- extended state
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000006870 function Effects 0.000 claims description 24
- 238000012544 monitoring process Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 9
- 230000004913 activation Effects 0.000 claims description 6
- 230000003213 activating effect Effects 0.000 claims description 4
- 230000008602 contraction Effects 0.000 abstract 3
- 238000010586 diagram Methods 0.000 description 14
- 239000000428 dust Substances 0.000 description 10
- 230000008569 process Effects 0.000 description 5
- 238000007789 sealing Methods 0.000 description 5
- 238000012905 input function Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000003292 glue Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/03—Constructional features of telephone transmitters or receivers, e.g. telephone hand-sets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Studio Devices (AREA)
- Drawers Of Furniture (AREA)
Abstract
Description
技术领域technical field
本发明涉及移动终端技术领域,尤其涉及一种电子设备及其控制方法、存储介质。The present invention relates to the technical field of mobile terminals, and in particular, to an electronic device, a control method thereof, and a storage medium.
背景技术Background technique
为了实现电子设备的语音输入功能,通常会在电子设备中设置麦克风来接收用户输入的语音信息。现有的麦克风是固定设置在电子设备中的,麦克风无法移动,用户在使用电子设备的语音输入功能时,比如语音通话、发送语音信息等,需要将麦克风靠近嘴巴部位,否则麦克风采集的声音质量可能较差,导致用户输入的语音信息无法被准确识别。In order to implement the voice input function of the electronic device, a microphone is usually provided in the electronic device to receive the voice information input by the user. The existing microphone is fixed in the electronic device, and the microphone cannot be moved. When the user uses the voice input function of the electronic device, such as a voice call, sending voice information, etc., the microphone needs to be close to the mouth, otherwise the sound quality collected by the microphone will be high. It may be poor, so that the voice information input by the user cannot be accurately recognized.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种电子设备及其控制方法、存储介质,通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当储存抽屉处于伸展状态时,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当储存抽屉处于收缩状态时,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。The embodiments of the present invention provide an electronic device, a control method thereof, and a storage medium. By arranging at least one box body in the electronic device, the microphone is accommodated in a storage drawer of the box body. When the storage drawer is in an extended state, the microphone It is exposed to receive the user's voice input, which can make the microphone closer to the mouth, improve the quality of the collected voice information, and improve the user experience; when the storage drawer is in the retracted state, the microphone is placed inside a closed box, which can prevent Dust, improve the life of the microphone.
本发明第一方面实施例提出了一种电子设备,包括:The embodiment of the first aspect of the present invention provides an electronic device, including:
壳体;case;
至少一个屏幕,所述一个或多个屏幕安装于所述壳体;at least one screen, the one or more screens mounted to the housing;
至少一个盒体,包括设置于所述壳体内部的盒体本体和插设于所述盒体本体的储存抽屉,所述储存抽屉用于容置麦克风,所述储存抽屉可在收缩状态和伸展状态之间运动;At least one box body, including a box body body arranged inside the casing and a storage drawer inserted in the box body body, the storage drawer is used for accommodating a microphone, and the storage drawer can be retracted and extended movement between states;
驱动组件,所述驱动组件包括:电磁部件和永磁体,所述电磁部件和所述永磁体中的一个位于所述盒体本体,所述电磁部件和所述永磁体中的另一个位于所述储存抽屉,所述电磁部件与所述永磁体相对设置,所述驱动组件通过磁性力将所述储存抽屉自所述收缩状态驱动至所述伸展状态,或者所述驱动组件通过磁性力将所述储存抽屉自所述伸展状态驱动至所述收缩状态。A drive assembly comprising: an electromagnetic component and a permanent magnet, one of the electromagnetic component and the permanent magnet is located on the box body, and the other of the electromagnetic component and the permanent magnet is located on the a storage drawer, the electromagnetic component is disposed opposite to the permanent magnet, the drive assembly drives the storage drawer from the retracted state to the extended state through magnetic force, or the drive assembly drives the storage drawer through magnetic force A storage drawer is driven from the extended state to the retracted state.
本发明实施例的电子设备,通过在壳体内部设置盒体本体和插设于盒体本体的储存抽屉,储存抽屉用于容置麦克风,并可在收缩状态和伸展状态之间运动,在电子设备中相对设置电磁部件和永磁铁,电磁部件和永磁体中的一个位于盒体本体,另一个位于储存抽屉,利用电磁部件和永磁体之间的磁性力将储存抽屉自收缩状态驱动至伸展状态,或者自伸展状态驱动至收缩状态。通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当储存抽屉处于伸展状态时,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当储存抽屉处于收缩状态时,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。In the electronic device of the embodiment of the present invention, a box body and a storage drawer inserted in the box body are arranged inside the casing, and the storage drawer is used to accommodate the microphone and can move between a retracted state and an extended state. Electromagnetic components and permanent magnets are arranged oppositely in the equipment, one of the electromagnetic components and permanent magnets is located in the box body, and the other is located in the storage drawer, and the storage drawer is driven from the retracted state to the extended state by the magnetic force between the electromagnetic components and the permanent magnets , or driven from an extended state to a retracted state. By arranging at least one box body in the electronic device, and accommodating the microphone in the storage drawer of the box body, when the storage drawer is in an extended state, the microphone is exposed to receive the user's voice input, which can make the microphone closer to the mouth, improve The quality of the collected voice information improves the user experience; when the storage drawer is in a retracted state, the microphone is placed inside a closed box, which can prevent dust and improve the service life of the microphone.
本发明第二方面实施例提出了一种电子设备的控制方法,用于对第一方面实施例所述的电子设备进行控制,所述方法包括:The embodiment of the second aspect of the present invention provides a control method for an electronic device, which is used to control the electronic device described in the embodiment of the first aspect, and the method includes:
监听所述电子设备的操作事件;monitor operation events of the electronic device;
根据监听到的所述操作事件,判断是否释放麦克风;According to the monitored operation event, determine whether to release the microphone;
当确定需要释放所述麦克风时,控制所述电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态;其中,所述储存抽屉容置有所述麦克风。When it is determined that the microphone needs to be released, the drive assembly of the electronic device is controlled to drive the storage drawer to drive from the retracted state to the extended state; wherein the storage drawer accommodates the microphone.
本发明实施例的电子设备的控制方法,通过监听电子设备的操作事件,根据操作事件判断是否释放麦克风,当确定释放麦克风时,控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态。通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当需要释放麦克风时驱动储存抽屉处于伸展状态,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当不需要释放麦克风时使储存抽屉处于收缩状态,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。The control method of the electronic device according to the embodiment of the present invention monitors the operation event of the electronic device, determines whether to release the microphone according to the operation event, and when it is determined to release the microphone, controls the driving component of the electronic device to drive the storage drawer containing the microphone in a self-retracting state Drive to extended state. By arranging at least one box body in the electronic device, accommodating the microphone in the storage drawer of the box body, and driving the storage drawer to be in an extended state when the microphone needs to be released, the microphone is exposed to receive the user's voice input, and the microphone can be brought closer It can improve the quality of the collected voice information and improve the user experience; when the microphone does not need to be released, the storage drawer is in a retracted state, and the microphone is placed inside a closed box, which can prevent dust and improve the service life of the microphone.
本发明第三方面实施例提出了一种电子设备的控制装置,用于对第一方面实施例所述的电子设备进行控制,所述装置包括:The embodiment of the third aspect of the present invention provides a control device for an electronic device, which is used to control the electronic device described in the embodiment of the first aspect, and the device includes:
监听模块,用于监听所述电子设备的操作事件;a monitoring module for monitoring operation events of the electronic device;
判断模块,用于根据监听到的所述操作事件,判断是否释放麦克风;a judgment module for judging whether to release the microphone according to the monitored operation event;
控制模块,用于当确定需要释放所述麦克风时,控制所述电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态;其中,所述储存抽屉容置有所述麦克风。The control module is configured to control the drive assembly of the electronic device to drive the storage drawer to drive from the retracted state to the extended state when it is determined that the microphone needs to be released; wherein the storage drawer accommodates the microphone.
本发明实施例的电子设备的控制装置,通过监听电子设备的操作事件,根据操作事件判断是否释放麦克风,当确定释放麦克风时,控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态。通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当需要释放麦克风时驱动储存抽屉处于伸展状态,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当不需要释放麦克风时使储存抽屉处于收缩状态,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。The control device of the electronic device according to the embodiment of the present invention monitors the operation event of the electronic device, determines whether to release the microphone according to the operation event, and when it is determined to release the microphone, controls the driving component of the electronic device to drive the storage drawer containing the microphone in a self-retracting state Drive to extended state. By arranging at least one box body in the electronic device, accommodating the microphone in the storage drawer of the box body, and driving the storage drawer to be in an extended state when the microphone needs to be released, the microphone is exposed to receive the user's voice input, and the microphone can be brought closer It can improve the quality of the collected voice information and improve the user experience; when the microphone does not need to be released, the storage drawer is in a retracted state, and the microphone is placed inside a closed box, which can prevent dust and improve the service life of the microphone.
本发明第四方面实施例提出了一种电子设备,包括:The embodiment of the fourth aspect of the present invention provides an electronic device, including:
壳体;case;
至少一个屏幕,所述一个或多个屏幕安装于所述壳体;at least one screen, the one or more screens mounted to the housing;
至少一个盒体,包括设置于所述壳体内部的盒体本体和插设于所述盒体本体的储存抽屉,所述储存抽屉用于容置麦克风,所述储存抽屉可在收缩状态和伸展状态之间运动;At least one box body, including a box body body arranged inside the casing and a storage drawer inserted in the box body body, the storage drawer is used for accommodating a microphone, and the storage drawer can be retracted and extended movement between states;
驱动组件,所述驱动组件包括:电磁部件和永磁体,所述电磁部件和所述永磁体中的一个位于所述盒体本体,所述电磁部件和所述永磁体中的另一个位于所述储存抽屉,所述电磁部件与所述永磁体相对设置,所述驱动组件通过磁性力将所述储存抽屉自所述收缩状态驱动至所述伸展状态,或者所述驱动组件通过磁性力将所述储存抽屉自所述伸展状态驱动至所述收缩状态;A drive assembly comprising: an electromagnetic component and a permanent magnet, one of the electromagnetic component and the permanent magnet is located on the box body, and the other of the electromagnetic component and the permanent magnet is located on the a storage drawer, the electromagnetic component is disposed opposite to the permanent magnet, the drive assembly drives the storage drawer from the retracted state to the extended state through magnetic force, or the drive assembly drives the storage drawer through magnetic force a storage drawer is driven from the extended state to the retracted state;
电路板,设置于所述壳体内部,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,执行以下步骤:A circuit board, disposed inside the casing, includes a memory, a processor, and a computer program stored on the memory and running on the processor. When the processor executes the program, the following steps are performed:
监听所述电子设备的操作事件;monitor operation events of the electronic device;
根据监听到的所述操作事件,判断是否释放麦克风;According to the monitored operation event, determine whether to release the microphone;
当确定需要释放所述麦克风时,控制所述电子设备的驱动组件驱动所述储存抽屉自所述收缩状态驱动至所述伸展状态;其中,所述储存抽屉容置有所述麦克风。When it is determined that the microphone needs to be released, the drive assembly of the electronic device is controlled to drive the storage drawer from the retracted state to the extended state; wherein the storage drawer accommodates the microphone.
本发明实施例的电子设备,通过监听电子设备的操作事件,根据操作事件判断是否释放麦克风,当确定释放麦克风时,控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态。通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当需要释放麦克风时驱动储存抽屉处于伸展状态,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当不需要释放麦克风时使储存抽屉处于收缩状态,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。The electronic device of the embodiment of the present invention determines whether to release the microphone according to the operation event by monitoring the operation event of the electronic device, and when it is determined to release the microphone, the driving component of the control electronic device drives the storage drawer containing the microphone to be driven from the retracted state to the extended state. state. By arranging at least one box body in the electronic device, accommodating the microphone in the storage drawer of the box body, and driving the storage drawer to be in an extended state when the microphone needs to be released, the microphone is exposed to receive the user's voice input, and the microphone can be brought closer It can improve the quality of the collected voice information and improve the user experience; when the microphone does not need to be released, the storage drawer is in a retracted state, and the microphone is placed inside a closed box, which can prevent dust and improve the service life of the microphone.
本发明第五方面实施例提出了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如第二方面实施例所述的电子设备的控制方法。The embodiment of the fifth aspect of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the program, the second aspect is implemented The control method of the electronic device described in the embodiment.
本发明第六方面实施例提出了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第二方面实施例所述的电子设备的控制方法。Embodiments of the sixth aspect of the present invention provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the control method of an electronic device according to the embodiment of the second aspect.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the present invention will be set forth, in part, from the following description, and in part will be apparent from the following description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of embodiments taken in conjunction with the accompanying drawings, wherein:
图1为本发明实施例一所提供的电子设备的结构示意图;1 is a schematic structural diagram of an electronic device according to Embodiment 1 of the present invention;
图2为储存抽屉处于收缩状态时电子设备的结构示意图;2 is a schematic structural diagram of an electronic device when the storage drawer is in a retracted state;
图3为沿储存抽屉的周向方向设置多个电磁部件的示意图;FIG. 3 is a schematic diagram of arranging a plurality of electromagnetic components along the circumferential direction of the storage drawer;
图4为沿盒体本体的周向方向设置多个永磁体的示意图;4 is a schematic diagram of setting a plurality of permanent magnets along the circumferential direction of the box body;
图5为盒体与壳体连接的示意图;5 is a schematic diagram of the connection between the box body and the casing;
图6为本发明实施例一所提供的电子设备的控制方法的流程示意图;6 is a schematic flowchart of a control method for an electronic device according to Embodiment 1 of the present invention;
图7为本发明实施例二所提供的电子设备的控制方法的流程示意图;7 is a schematic flowchart of a control method for an electronic device according to Embodiment 2 of the present invention;
图8为本发明实施例一所提供的电子设备的控制装置的结构示意图;8 is a schematic structural diagram of a control device for an electronic device provided by Embodiment 1 of the present invention;
图9为本发明实施例二所提供的电子设备的控制装置的结构示意图FIG. 9 is a schematic structural diagram of a control device for an electronic device according to Embodiment 2 of the present invention
图10为本发明实施例所提供的另一种电子设备的结构示意图;以及FIG. 10 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention; and
图11为本发明实施例提出的又一种电子设备的结构示意图。FIG. 11 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present invention and should not be construed as limiting the present invention.
下面参考附图描述本发明实施例的电子设备及其控制方法、存储介质。The electronic device, its control method, and the storage medium according to the embodiments of the present invention are described below with reference to the accompanying drawings.
图1为本发明实施例一所提供的电子设备的结构示意图。FIG. 1 is a schematic structural diagram of an electronic device according to Embodiment 1 of the present invention.
如图1所示,该电子设备10包括:壳体110、至少一个屏幕120、至少一个盒体130,以及驱动组件140。As shown in FIG. 1 , the
其中,一个或多个屏幕120安装于壳体110上。也就是说,电子设备10可以具有一个或多个屏幕120,屏幕120可以用于显示电子设备10的相关信息(如菜单及相关应用的界面等),屏幕120也可以作为输入设备,用户可以通过屏幕120向电子设备10输入相关控制信息。屏幕120安装于壳体110,由此,便于屏幕120的固定装配。Wherein, one or
至少一个盒体130包括设置于壳体110内部的盒体本体131和插设于盒体本体131的储存抽屉132,储存抽屉132用于容置麦克风133,储存抽屉132可在收缩状态和伸展状态之间运动。At least one
驱动组件140包括:电磁部件141和永磁体142。电磁部件141和永磁体142中的一个位于盒体本体131,电磁部件141和永磁体142中的另一个位于储存抽屉132,电磁部件141与永磁体142相对设置。驱动组件140通过磁性力将储存抽屉132自收缩状态驱动至伸展状态,或者驱动组件140通过磁性力将储存抽屉132自伸展状态驱动至收缩状态。The driving
可以理解的是,电磁部件141通电后,可以与永磁体142产生磁性力。当通入电磁部件141的电流流向改变后,可以改变电磁部件141与永磁体142之间产生的磁性力的方向。例如,可以通过改变电磁部件141中的电流方向使电磁部件141对永磁体142产生排斥力或产生吸引力。从而,可以通过驱动组件140驱动储存抽屉132在伸展状态和收缩状态之间切换。It can be understood that, after the
需要说明的是,当储存抽屉132处于收缩状态时,电磁部件141通入电流,电磁部件141与永磁体142之间产生排斥力,从而将储存抽屉132驱动至伸展状态,储存抽屉132超出屏幕120。由此,当储存抽屉132超出屏幕120的屏幕时,就可以将内置的麦克风133显露出来,从而可以通过该麦克风133采集语音信息,能够利用麦克风133接收用户输入的语音信息。It should be noted that when the
当储存抽屉132处于伸展状态时,电磁部件141通入方向电流,电磁部件141与永磁体142之间产生吸力,从而将储存抽屉132从伸展状态切换至收缩状态,使储存抽屉132与屏幕120或壳体110平齐或者低于屏幕120或壳体110,从而,避免了储存抽屉132影响电子设备10外观的问题。When the
此处需要说明的是,电磁部件141和永磁体142以成对的方式相对设置,可以将电磁部件141设于储存抽屉132,将永磁体142设于盒体本体131;也可以将电磁部件141设于盒体本体131,将永磁体142设于储存抽屉132,由此,提高了驱动组件140设置的多样性。图1中仅以将电磁部件141设于储存抽屉132,将永磁体142设于盒体本体131作为示例进行描述,而不能作为对本发明的限制。It should be noted here that the
在本发明实施例一种可能的实现方式中,电磁部件141可以为电磁线圈。可以理解的是,电磁部件141选用电磁线圈,装配方便、成本低。而且,通过改变电磁线圈内的电流方向,可以切换电磁线圈对永磁体142产生的吸引力和排斥力,操作方便、可靠。In a possible implementation manner of the embodiment of the present invention, the
在本发明实施例一种可能的实现方式中,当储存抽屉132处于收缩状态时,储存抽屉132与盒体本体131构成密闭空间,且储存抽屉132与屏幕120或壳体110的外表面平齐,或者储存抽屉132低于外表面,由此,能够避免因储存抽屉132处于收缩状态时凸出于壳体110外表面或高于屏幕120而影响电子设备10的美观性。图2为储存抽屉处于收缩状态时电子设备的结构示意图,图2中,储存抽屉132处于收缩状态时,储存抽屉132与壳体110的外表面齐平。从图2中可以看出,当储存抽屉132处于收缩状态时,电子设备10的外观仅能看到壳体110和屏幕120,驱动组件140随盒体130一起被隐藏在壳体110内部。In a possible implementation of the embodiment of the present invention, when the
当储存抽屉132处于伸展状态时,储存抽屉132与盒体本体131之间存在缝隙,且储存抽屉132突出屏幕120或壳体110的外表面。如图1中所示,储存抽屉132突出壳体110的外表面。When the
在本发明实施例一种可能的实现方式中,盒体130设置在电子设备10的第一侧边附近。其中,第一侧边为与电子设备10的听筒所在的第二侧边的对应侧边。如图1所示,听筒可以设置在电子设备10的上侧边,盒体130设置在电子设备10的下侧边。In a possible implementation manner of the embodiment of the present invention, the
在本发明实施例一种可能的实现方式中,电磁部件141和永磁体142可以为多个,多个电磁部件141与多个永磁体142一一对应。电磁部件141与盒体本体131连接,多个电磁部件141沿盒体本体131周向间隔设置;永磁体142与储存抽屉132连接,多个永磁体142沿储存抽屉132周向间隔设置。In a possible implementation manner of the embodiment of the present invention, there may be multiple
如图3和图4所示,沿盒体本体131的周向方向间隔嵌设有多个电磁部件141,多个电磁部件141之间通过导线连接。沿储存抽屉132的周向方向间隔嵌设有多个永磁体142,多个电磁部件141与多个永磁体142一一对应。由此,通过设置多个电磁部件141和多个永磁体142,可以增强电磁部件141与永磁体142之间的磁性作用力的强度,可以提高驱动组件140驱动储存抽屉132运动时的平稳性。As shown in FIG. 3 and FIG. 4 , a plurality of
本实施例的电子设备,通过在壳体内部设置盒体本体和插设于盒体本体的储存抽屉,储存抽屉用于容置麦克风,并可在收缩状态和伸展状态之间运动,在电子设备中相对设置电磁部件和永磁铁,电磁部件和永磁体中的一个位于盒体本体,另一个位于储存抽屉,利用电磁部件和永磁体之间的磁性力将储存抽屉自收缩状态驱动至伸展状态,或者自伸展状态驱动至收缩状态。通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当储存抽屉处于伸展状态时,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当储存抽屉处于收缩状态时,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。In the electronic device of this embodiment, a box body and a storage drawer inserted in the box body are arranged inside the casing. The storage drawer is used to accommodate the microphone and can move between the retracted state and the extended state. Electromagnetic components and permanent magnets are oppositely arranged in the middle, one of the electromagnetic components and permanent magnets is located in the box body, and the other is located in the storage drawer, and the storage drawer is driven from the retracted state to the extended state by the magnetic force between the electromagnetic components and the permanent magnet, Or driven from an extended state to a retracted state. By arranging at least one box body in the electronic device, and accommodating the microphone in the storage drawer of the box body, when the storage drawer is in an extended state, the microphone is exposed to receive the user's voice input, which can make the microphone closer to the mouth, improve The quality of the collected voice information improves the user experience; when the storage drawer is in a retracted state, the microphone is placed inside a closed box, which can prevent dust and improve the service life of the microphone.
根据本申请的一些实施例,盒体130与壳体110之间卡合连接。由此,便于盒体130与壳体110之间的拆装,从而便于盒体130的拆装更换。而且盒体130与壳体110之间卡接连接,结构简单、装配方便,可以提高盒体130与壳体110之间的装配效率,降低生产成本。According to some embodiments of the present application, the
进一步地,如图5所示,盒体130可以设有多个卡槽134,多个卡槽134沿盒体130的周向方向间隔排布,壳体110设有多个卡勾150,多个卡勾150与多个卡槽134一一对应。由此,盒体130与壳体110之间可以通过卡勾150与卡槽134卡接装配,由此,可以提高,盒体130与壳体110之间的装配效率。而且,通过多个卡勾150与卡槽134一一对应配合,可以提高盒体130与壳体110之间装配的稳固性和牢固性。Further, as shown in FIG. 5 , the
如图5所示,卡勾150的卡勾部152与卡槽134配合,卡勾部152的端部可以设置有导向斜面,由此,在装配盒体130时,导向斜面可以起到导向引导的作用,而且可以降低卡勾150与卡槽134卡合时的摩擦力,从而便于卡勾150与卡槽134的卡合。As shown in FIG. 5 , the
进一步地,如图5所示,卡勾150包括:本体部151和卡勾部152,本体部151可活动地设于壳体110。卡勾部152的一端与本体部151连接,卡勾部152的另一端与盒体130卡接连接。卡勾150的卡勾部152与盒体130卡接,以实现壳体110与盒体130之间的装配。Further, as shown in FIG. 5 , the
根据本发明的一些实施例,如图5所示,壳体110还可以包括:第一弹片161和第二弹片162,第一弹片161的一端与卡勾部152抵持,第一弹片161的另一端与屏幕120止抵。第二弹片162的一端与本体部151的内表面抵持,第二弹片162的另一端固定于壳体110。需要说明的是,在盒体130装配的过程中,可以通过卡勾150挤压第二弹片162,使卡勾150朝向电子设备10内部缩进,当盒体130装配至适当位置时,在第二弹片162的弹性作用下,将卡勾150朝向盒体130弹出,盒体130的内周壁上设置有卡槽134,卡勾150的卡勾部152与盒体130的卡槽134卡接。According to some embodiments of the present invention, as shown in FIG. 5 , the
根据本发明的一些实施例,如图5所示,可以是卡勾150的卡勾部152与第一弹片161止抵,当然还可以设置为卡勾150的本体部151与第一弹片161止抵。由此,可以增加卡勾150与第一弹片161之间的配合多样性。According to some embodiments of the present invention, as shown in FIG. 5 , the
在本发明的一些实施例中,如图5所示,电子设备10还可以包括密封件170,密封件170设于盒体130与壳体110之间。由此,密封件170可以对电子设备10进行密封,防止灰尘、液滴等进入到电子设备10的内部而影响电子设备10的运行,甚至造成电子设备10的损坏。In some embodiments of the present invention, as shown in FIG. 5 , the
如图5所示,密封件170扣合至屏幕120的底面,并通过点胶与屏幕120密封连接,密封件170的周向边缘具有弯折部,弯折部沿电子设备10的厚度方向延伸,以对盒体130与壳体110之间的缝隙进行密封。As shown in FIG. 5 , the sealing
根据本发明的一些实施例,盒体130构造为矩形框架或长圆形框架。也就是说,盒体130可以设置为矩形框架,由此,便于盒体130的加工制造,从而可以降低生产成本。盒体130也可以设置为长圆形框架,由此,可以提高盒体130的外观美观性。According to some embodiments of the present invention, the
在本发明的一些实施例中,盒体130和壳体110中的一个设有定位柱81,另一个设有与定位柱81相适配的定位槽82。也就是说,如图5所示,可以在盒体130上设置定位柱81,在壳体110上设置定位槽82;也可以是在盒体130上设置定位槽82,在壳体110上设置定位柱81。由此,在装配盒体130时,定位柱81具有导向的作用,便于盒体130与壳体110之间的装配。In some embodiments of the present invention, one of the
根据本发明的一些实施例,定位柱81和定位槽82均为间隔设置的多个。由此,通过将定位柱81和定位槽82设置为间隔的多个,可以使盒体130与壳体110之间的装配更加平稳、方便,从而有利于提高盒体130的装配效率。According to some embodiments of the present invention, the
在本发明的一些实施例中,盒体130和壳体110中的一个设有凸筋,另一个设有与凸筋相适配的嵌入槽。也就就是说,可以在盒体130上设置凸筋,在壳体110上设置与凸筋相适配的嵌入槽;当然也可以是在盒体130上设置嵌入槽,在壳体110上设置有与嵌入槽相适配的凸筋。由此,通过凸筋与嵌入槽的配合,可以提高盒体130与壳体10之间配合的牢固性。而且,可以有效防止握持电子设备10时产生噪声。In some embodiments of the present invention, one of the
根据本发明的一些实施例,当储存抽屉132切换至伸展状态时,储存抽屉132可以沿屏幕120的周向方向相对于屏幕120转动,从而提高了电子设备10的可玩性。According to some embodiments of the present invention, when the
为了更加清楚地描述上述实施例中所述的电子设备的具体工作过程,本发明实施例还提出了一种电子设备的控制方法,本发明实施例提出的电子设备的控制方法用于对上述实施例所述的电子设备进行控制,以使电子设备能够实现语音输入功能。In order to more clearly describe the specific working process of the electronic device described in the above embodiments, the embodiment of the present invention further proposes a control method of the electronic device, and the control method of the electronic device proposed by the embodiment of the present invention is used to implement the The electronic device described in the example is controlled so that the electronic device can realize the function of voice input.
图6为本发明实施例一所提供的电子设备的控制方法的流程示意图。FIG. 6 is a schematic flowchart of a control method for an electronic device according to Embodiment 1 of the present invention.
如图6所示,该电子设备的控制方法包括以下步骤:As shown in Figure 6, the control method of the electronic device includes the following steps:
步骤101,监听电子设备的操作事件。
本实施例中,当用户使用电子设备时,可以对用户在电子设备中执行操作时产出的操作事件进行监听。比如,可以对用户执行的操作所针对的对象进行监听,不同的对象对应的操作事件不同。例如,用户对手机通讯录中存储的联系人的电话执行点击操作时,对应的操作事件为通话事件;用户对电子设备中的相机执行点击操作时,对应的操作事件为拍摄事件。In this embodiment, when the user uses the electronic device, an operation event generated when the user performs an operation in the electronic device can be monitored. For example, it is possible to monitor the objects targeted by the operations performed by the user, and different objects correspond to different operation events. For example, when the user performs a click operation on the phone of a contact stored in the mobile phone address book, the corresponding operation event is a call event; when the user performs a click operation on the camera in the electronic device, the corresponding operation event is a shooting event.
步骤102,根据监听到的操作事件,判断是否释放麦克风。
电子设备实施不同的操作事件时,所需调用的工具不同。比如,当操作事件为拍摄事件时,一般情况下只需启动相机即可实现;当操作事件为通话事件时,需要启动麦克风和听筒才能实现正常通话。从而,本实施例中,可以根据监听到的操作事件判断是否释放麦克风。当操作事件为通话事件(包括视频通话和语音通话)、K歌事件、声音录制等依赖麦克风实现的事件时,则判定释放麦克风。When the electronic device implements different operation events, the tools that need to be called are different. For example, when the operation event is a shooting event, in general, it is only necessary to activate the camera; when the operation event is a call event, the microphone and the receiver need to be activated to realize a normal call. Therefore, in this embodiment, whether to release the microphone can be determined according to the monitored operation event. When the operation event is a call event (including a video call and a voice call), a karaoke event, a sound recording and other events that rely on the microphone, it is determined that the microphone is released.
步骤103,当确定需要释放麦克风时,控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态;其中,储存抽屉容置有麦克风。
本实施例中,当根据监听到的操作事件确定需要释放麦克风时,则控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态,使麦克风显露出来,以采集用户发出的声音。In this embodiment, when it is determined that the microphone needs to be released according to the monitored operation event, the drive component of the control electronic device drives the storage drawer containing the microphone to be driven from the retracted state to the extended state, so that the microphone is exposed, so as to collect the user's the sound of.
作为一种示例,可以对驱动组件中的电磁部件进行通电,使电流流入电磁部件之后,电磁部件与驱动组件中的永磁体之间产生互斥的磁性力,储存抽屉在互斥的磁性力的作用下,自收缩状态驱动至伸展状态。As an example, the electromagnetic component in the driving assembly can be energized, and after the current flows into the electromagnetic component, a mutually repulsive magnetic force is generated between the electromagnetic component and the permanent magnet in the driving component, and the storage drawer is in the position of the mutually repulsive magnetic force. Under the action, the self-contracted state is driven to the extended state.
在本发明实施例一种可能的实现方式中,控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态之后,还可以对电子设备当前所处的环境的噪声进行检测,进而根据检测到的环境的噪声,调整麦克风的增益。由此,通过根据环境的噪声对麦克风的增益进行调整,能够调整麦克风的灵敏度,使麦克风能够采集到较高质量的声音,尽可能地避免因环境嘈杂导致采集的声音质量差或无法采集到用户的声音的情况。In a possible implementation manner of the embodiment of the present invention, after the drive component of the control electronic device drives the storage drawer to drive from the retracted state to the extended state, the noise of the environment in which the electronic device is currently located may be detected, and then, according to the detected the ambient noise, adjust the gain of the microphone. Therefore, by adjusting the gain of the microphone according to the noise of the environment, the sensitivity of the microphone can be adjusted, so that the microphone can collect higher-quality sound, and the sound quality of the collected sound due to the noisy environment can be avoided as much as possible or the user cannot be collected. sound situation.
在本发明实施例一种可能的实现方式中,控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态之后,即可通过麦克风采集音频数据,并将采集的音频数据发送至对端的电子设备,由此,能够实现两个电子设备之间的通话或语音信息交互。In a possible implementation of the embodiment of the present invention, after the drive component of the control electronic device drives the storage drawer from the retracted state to the extended state, audio data can be collected through the microphone, and the collected audio data can be sent to the electronic device at the opposite end. The device, thereby, can realize a call or voice information interaction between two electronic devices.
本实施例的电子设备的控制方法,通过监听电子设备的操作事件,根据操作事件判断是否释放麦克风,当确定释放麦克风时,控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态。通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当需要释放麦克风时驱动储存抽屉处于伸展状态,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当不需要释放麦克风时使储存抽屉处于收缩状态,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。In the control method of the electronic device of this embodiment, by monitoring the operation event of the electronic device, it is determined whether to release the microphone according to the operation event, and when the microphone is determined to be released, the driving component of the electronic device is controlled to drive the storage drawer accommodating the microphone in a self-retracting state. to the stretched state. By arranging at least one box body in the electronic device, accommodating the microphone in the storage drawer of the box body, and driving the storage drawer to be in an extended state when the microphone needs to be released, the microphone is exposed to receive the user's voice input, and the microphone can be brought closer It can improve the quality of the collected voice information and improve the user experience; when the microphone does not need to be released, the storage drawer is in a retracted state, and the microphone is placed inside a closed box, which can prevent dust and improve the service life of the microphone.
图7为本发明实施例二所提供的电子设备的控制方法的流程示意图。FIG. 7 is a schematic flowchart of a control method for an electronic device according to Embodiment 2 of the present invention.
如图7所示,该电子设备的控制方法可以包括以下步骤:As shown in Figure 7, the control method of the electronic device may include the following steps:
步骤201,监听电子设备当前所处的应用程序。
本实施例中,可以对电子设备当前启动的应用程序进行监听,比如监听当前启动的应用程序的名称、标识信息等。In this embodiment, the application program currently started by the electronic device can be monitored, for example, the name and identification information of the currently started application program can be monitored.
此处需要说明的是,电子设备当前所处的应用程序指的是电子设备的屏幕中当前显示的内容为应用程序的内容,比如电子设备当前显示的内容为某个游戏的界面时,则电子设备当前启动的应用程序为该游戏界面对应的游戏。It should be noted here that the current application of the electronic device refers to that the content currently displayed on the screen of the electronic device is the content of the application. For example, when the content currently displayed by the electronic device is the interface of a game, the electronic device The application currently started by the device is the game corresponding to the game interface.
步骤202,如果应用程序为具有启动麦克风功能的应用程序,则监控应用程序是否发生触发启动麦克风的操作事件。
对于部分应用程序而言,比如K歌软件、聊天软件等,需要得到启动麦克风的授权才能在运行过程中调用麦克风。对于某个应用程序而言,当用户希望在使用该应用程序时能够使用依赖麦克风实现的功能时,可以在初次启动该应用程序时对该应用程序授予启动麦克风的权利,或者在电子设备的权限管理设置中对应用程序进行授权,具备依赖麦克风实现的功能并且被授权启动麦克风的应用程序可以认为是具有启动麦克风功能的应用程序。For some applications, such as karaoke software, chat software, etc., the authorization to activate the microphone is required to call the microphone during operation. For an application, when the user wants to use the function that relies on the microphone when using the application, the application can be granted the right to activate the microphone when the application is first launched, or the permission of the electronic device. The application is authorized in the management settings, and the application that has the function implemented by relying on the microphone and is authorized to activate the microphone can be regarded as the application that has the function of initiating the microphone.
本实施例中,当电子设备当前启动的应用程序为具有启动麦克风功能的应用程序时,则进一步监控该应用程序是否发生触发启动麦克风的操作事件。例如,当监听到用户触发应用程序中带有话筒标识的对象时,则确定应用程序发生了触发启动麦克风的操作事件。In this embodiment, when the application program currently activated by the electronic device is an application program with a function of activating the microphone, it is further monitored whether an operation event that triggers the activation of the microphone occurs in the application program. For example, when it is monitored that the user triggers an object with a microphone identifier in the application, it is determined that an operation event that triggers the activation of the microphone occurs in the application.
步骤203,将监听到的操作事件,与预设的操作事件进行匹配。Step 203: Match the monitored operation event with a preset operation event.
其中,预设的操作事件是依赖于麦克风实现的功能对应的事件,比如输入法的语音输入功能、聊天软件的语音输入功能、视频通话功能、直播功能、K歌功能等。The preset operation event is an event corresponding to a function implemented by a microphone, such as a voice input function of an input method, a voice input function of a chat software, a video call function, a live broadcast function, a karaoke function, and the like.
本实施例中,当监听到操作事件之后,可以将监听到的操作事件与预设的操作事件进行匹配,以判断监听到的操作事件是否存在于预设的操作事件中。In this embodiment, after an operation event is monitored, the monitored operation event may be matched with a preset operation event to determine whether the monitored operation event exists in the preset operation event.
步骤204,如果操作事件存在于预设的操作事件中,则确定需要释放麦克风。
步骤205,当确定需要释放麦克风时,控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态;其中,储存抽屉容置有麦克风。
当监听到的操作事件存在于预设的操作事件中时,则可以确定执行该操作事件对应的操作时需要释放麦克风,进而,可以控制电子设备的驱动组件驱动电子设备中容置有麦克风的储存抽屉自收缩状态驱动至伸展状态,以使麦克风显露出来采集用户的声音信号。When the monitored operation event exists in the preset operation event, it can be determined that the microphone needs to be released when the operation corresponding to the operation event is performed, and further, the driving component of the electronic device can be controlled to drive the storage that accommodates the microphone in the electronic device. The drawer is driven from the retracted state to the extended state to expose the microphone to collect the user's voice signal.
在本发明实施例一种可能的实现方式中,控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态之后,还可以控制储存抽屉恢复至收缩状态。作为一种示例,可以在储存抽屉维持伸展状态固定时长后,控制电子设备的驱动组件驱动储存抽屉自伸展状态驱动至收缩状态。其中,固定时长可以预先设定,比如10分钟。作为另一种示例,可以在检测到电子设备当前使用的应用程序被关闭时,控制电子设备的驱动组件驱动储存抽屉自伸展状态驱动至收缩状态。通过在储存抽屉维持伸展状态固定时长或者应用程序被关闭时控制储存抽屉恢复至收缩状态,能够使电子设备的麦克风自动收起,无需用户手动关闭,减少了用户操作。In a possible implementation manner of the embodiment of the present invention, after the drive assembly of the control electronic device drives the storage drawer to be driven from the retracted state to the extended state, the storage drawer may also be controlled to return to the retracted state. As an example, after the storage drawer maintains the extended state for a fixed period of time, the drive assembly of the control electronic device may drive the storage drawer to drive from the extended state to the retracted state. The fixed duration may be preset, such as 10 minutes. As another example, when it is detected that the application program currently used by the electronic device is closed, the driving component of the electronic device can be controlled to drive the storage drawer from the extended state to the retracted state. By controlling the storage drawer to return to the retracted state when the storage drawer maintains the extended state for a fixed period of time or when the application program is closed, the microphone of the electronic device can be automatically retracted, and the user does not need to manually close it, thereby reducing user operations.
本实施例的电子设备的控制方法,通过监听电子设备当前启动的应用程序,当应用程序为具有启动麦克风功能的应用程序时,进一步监听应用程序发生的操作事件,当操作事件存在于预设的操作事件中时,确定释放麦克风,进而控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态,由此,能够根据用户在应用程序中执行的操作确定是否释放麦克风,提高方法的灵活性。通过将麦克风容置于储存抽屉中,随储存抽屉自收缩状态变为伸展状态显露出来,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验。The control method of an electronic device in this embodiment is to monitor the application program currently started by the electronic device, when the application program is an application program with the function of starting the microphone, further monitor the operation event generated by the application program, when the operation event exists in the preset During the operation event, it is determined to release the microphone, and then the drive assembly of the electronic device is controlled to drive the storage drawer containing the microphone to be driven from the retracted state to the extended state, so that whether to release the microphone can be determined according to the operation performed by the user in the application program, Improve method flexibility. By accommodating the microphone in the storage drawer, the microphone can be brought closer to the mouth, the quality of the collected voice information can be improved, and the user experience can be improved when the storage drawer is exposed from the retracted state to the extended state.
为了实现上述实施例,本发明还提出一种电子设备的控制装置。In order to realize the above embodiments, the present invention also provides a control device of an electronic device.
图8为本发明实施例一所提供的电子设备的控制装置的结构示意图。FIG. 8 is a schematic structural diagram of a control apparatus for an electronic device according to Embodiment 1 of the present invention.
如图8所示,该电子设备的控制装置50包括:监听模块510、判断模块520,以及控制模块530。其中,As shown in FIG. 8 , the
监听模块510,用于监听电子设备的操作事件。The monitoring module 510 is used for monitoring operation events of the electronic device.
判断模块520,用于根据监听到的操作事件,判断是否释放麦克风。The judgment module 520 is configured to judge whether to release the microphone according to the monitored operation event.
控制模块530,用于当确定需要释放麦克风时,控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态;其中,储存抽屉容置有所述麦克风。The control module 530 is configured to control the drive assembly of the electronic device to drive the storage drawer to drive from the retracted state to the extended state when it is determined that the microphone needs to be released; wherein the storage drawer accommodates the microphone.
在本发明实施例一种可能的实现方式中,控制模块530控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态之后,该电子设备的控制装置50还可以对电子设备当前所处的环境的噪声进行检测,进而根据检测到的环境的噪声,调整麦克风的增益。由此,通过根据环境的噪声对麦克风的增益进行调整,能够调整麦克风的灵敏度,使麦克风能够采集到较高质量的声音,尽可能地避免因环境嘈杂导致采集的声音质量差或无法采集到用户的声音的情况。In a possible implementation manner of the embodiment of the present invention, after the control module 530 controls the drive assembly of the electronic device to drive the storage drawer from the retracted state to the extended state, the
在本发明实施例一种可能的实现方式中,控制模块530控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态之后,该电子设备的控制装置50还可以通过麦克风采集音频数据,并将采集的音频数据发送至对端的电子设备,以实现两个电子设备之间的通话或者语音信息交互。In a possible implementation manner of the embodiment of the present invention, after the control module 530 controls the drive assembly of the electronic device to drive the storage drawer from the retracted state to the extended state, the
进一步地,在本发明实施例的一种可能的实现方式中,如图9所示,在如图8所示实施例的基础上,监听模块510可以包括:Further, in a possible implementation manner of the embodiment of the present invention, as shown in FIG. 9 , on the basis of the embodiment shown in FIG. 8 , the monitoring module 510 may include:
监听单元511,用于监听电子设备当前所处的应用程序。The monitoring unit 511 is configured to monitor the current application of the electronic device.
监控单元512,用于在应用程序为具有启动麦克风功能的应用程序时,监控应用程序是否发生触发启动麦克风的所述操作事件。The monitoring unit 512 is configured to monitor, when the application program is an application program with a function of activating the microphone, whether the operation event that triggers the activation of the microphone occurs in the application program.
判断模块520包括:The judgment module 520 includes:
匹配单元521,用于将监听到的操作事件,与预设的操作事件进行匹配。The matching unit 521 is configured to match the monitored operation event with a preset operation event.
判定单元522,用于在操作事件存在于预设的操作事件中时,确定需要释放麦克风。The determining unit 522 is configured to determine that the microphone needs to be released when the operation event exists in the preset operation event.
在本发明实施例一种可能的实现方式中,控制模块530控制电子设备的驱动组件驱动所述储存抽屉自收缩状态驱动至伸展状态之后,该电子设备的控制装置50还可以在储存抽屉维持伸展状态固定时长后,控制电子设备的驱动组件驱动储存抽屉自伸展状态驱动至收缩状态;或者,当检测到电子设备当前使用的应用程序被关闭时,控制电子设备的驱动组件驱动储存抽屉自伸展状态驱动至收缩状态。通过在储存抽屉维持伸展状态固定时长或者应用程序被关闭时控制储存抽屉恢复至收缩状态,能够使电子设备的麦克风自动收起,无需用户手动关闭,减少了用户操作。In a possible implementation manner of the embodiment of the present invention, after the control module 530 controls the drive assembly of the electronic device to drive the storage drawer from the retracted state to the extended state, the
通过监听电子设备当前启动的应用程序,当应用程序为具有启动麦克风功能的应用程序时,进一步监听应用程序发生的操作事件,当操作事件存在于预设的操作事件中时,确定释放麦克风,进而控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态,由此,能够根据用户在应用程序中执行的操作确定是否释放麦克风,提高方法的灵活性。By monitoring the application program currently started by the electronic device, when the application program is an application program with the function of starting the microphone, the operation event of the application program is further monitored, and when the operation event exists in the preset operation event, it is determined to release the microphone, and then The drive assembly of the control electronic device drives the storage drawer accommodating the microphone from the retracted state to the extended state, thereby determining whether to release the microphone according to the operation performed by the user in the application program, improving the flexibility of the method.
需要说明的是,前述对电子设备的控制方法实施例的解释说明也适用于该实施例的电子设备的控制装置,其实现原理类似,此处不再赘述。It should be noted that, the foregoing explanations on the embodiment of the control method for an electronic device are also applicable to the control device for an electronic device in this embodiment, and the implementation principle thereof is similar, which is not repeated here.
本实施例的电子设备的控制装置,通过监听电子设备的操作事件,根据操作事件判断是否释放麦克风,当确定释放麦克风时,控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态。通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当需要释放麦克风时驱动储存抽屉处于伸展状态,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当不需要释放麦克风时使储存抽屉处于收缩状态,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。The control device of the electronic device in this embodiment monitors the operation event of the electronic device, determines whether to release the microphone according to the operation event, and when it is determined to release the microphone, controls the driving component of the electronic device to drive the storage drawer containing the microphone to drive in a self-retracting state. to the stretched state. By arranging at least one box body in the electronic device, accommodating the microphone in the storage drawer of the box body, and driving the storage drawer to be in an extended state when the microphone needs to be released, the microphone is exposed to receive the user's voice input, and the microphone can be brought closer It can improve the quality of the collected voice information and improve the user experience; when the microphone does not need to be released, the storage drawer is in a retracted state, and the microphone is placed inside a closed box, which can prevent dust and improve the service life of the microphone.
为了实现上述实施例,本发明实施例还提供了一种电子设备。In order to implement the above embodiments, the embodiments of the present invention further provide an electronic device.
图10为本发明实施例所提供的另一种电子设备的结构示意图。FIG. 10 is a schematic structural diagram of another electronic device provided by an embodiment of the present invention.
如图10所示,该电子设备70包括:壳体710、至少一个屏幕720、至少一个盒体730、驱动组件740,以及电路板750。As shown in FIG. 10 , the
其中,一个或多个屏幕720安装于壳体710。Wherein, one or
至少一个盒体730包括设置于壳体710内部的盒体本体731和插设于盒体本体731的储存抽屉732,储存抽屉732用于容置麦克风733,储存抽屉732可在收缩状态和伸展状态之间运动。At least one
驱动组件740包括:电磁部件741和永磁体742。电磁部件741和永磁体742中的一个位于盒体本体731,电磁部件741和永磁体742中的另一个位于储存抽屉732,电磁部件741与永磁体742相对设置。驱动组件740通过磁性力将储存抽屉732自收缩状态驱动至伸展状态,或者驱动组件740通过磁性力将储存抽屉自伸展状态驱动至收缩状态。The driving
此处需要说明的是,电磁部件741和永磁体742以成对的方式相对设置,可以将电磁部件741设于储存抽屉732,将永磁体742设于盒体本体731;也可以将电磁部件741设于盒体本体731,将永磁体742设于储存抽屉732,由此,提高了驱动组件740设置的多样性。图7中仅以将电磁部件741设于储存抽屉732,将永磁体742设于盒体本体731作为示例进行描述,而不能作为对本发明的限制。It should be noted here that the
电路板750设置于壳体710内部,包括存储器760、处理器770及存储在存储器760上并可在处理器770上运行的计算机程序761,处理器770执行程序时,执行以下步骤:The
监听电子设备的操作事件;Monitor operation events of electronic equipment;
根据监听到的操作事件,判断是否释放麦克风;According to the monitored operation events, determine whether to release the microphone;
当确定需要释放麦克风时,控制电子设备的驱动组件驱动储存抽屉自收缩状态驱动至伸展状态;其中,储存抽屉容置有麦克风。When it is determined that the microphone needs to be released, the drive assembly of the control electronic device drives the storage drawer to drive from the retracted state to the extended state; wherein the storage drawer accommodates the microphone.
本实施例的电子设备,通过监听电子设备的操作事件,根据操作事件判断是否释放麦克风,当确定释放麦克风时,控制电子设备的驱动组件驱动容置有麦克风的储存抽屉自收缩状态驱动至伸展状态。通过在电子设备中设置至少一个盒体,将麦克风容置于盒体的储存抽屉中,当需要释放麦克风时驱动储存抽屉处于伸展状态,麦克风显露出来以接收用户的语音输入,能够使麦克风更接近于嘴巴,提高采集的语音信息的质量,提升用户体验;当不需要释放麦克风时使储存抽屉处于收缩状态,麦克风被置于一个封闭的盒体内部,能够防止灰尘,提高麦克风的使用寿命。In the electronic device of this embodiment, by monitoring the operation event of the electronic device, it is determined whether to release the microphone according to the operation event, and when it is determined to release the microphone, the driving component of the control electronic device drives the storage drawer containing the microphone to be driven from the retracted state to the extended state . By arranging at least one box body in the electronic device, accommodating the microphone in the storage drawer of the box body, and driving the storage drawer to be in an extended state when the microphone needs to be released, the microphone is exposed to receive the user's voice input, and the microphone can be brought closer It can improve the quality of the collected voice information and improve the user experience; when the microphone does not need to be released, the storage drawer is in a retracted state, and the microphone is placed inside a closed box, which can prevent dust and improve the service life of the microphone.
为了实现上述实施例,本发明还提出另一种电子设备。In order to realize the above-mentioned embodiment, the present invention further proposes another electronic device.
图11为本发明实施例提出的又一种电子设备的结构示意图。如图11所示,该电子设备80包括:存储器810、处理器820及存储在存储器810上并可在处理器820上运行的计算机程序830,处理器820执行程序时,实现如前述实施例所述的电子设备的控制方法。FIG. 11 is a schematic structural diagram of another electronic device according to an embodiment of the present invention. As shown in FIG. 11 , the
为了实现上述实施例,本发明还提出一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如前述实施例所述的电子设备的控制方法。In order to realize the above-mentioned embodiments, the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the control method of an electronic device as described in the foregoing embodiments.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, description with reference to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples", etc., mean specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine the different embodiments or examples described in this specification, as well as the features of the different embodiments or examples, without conflicting each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically defined.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing custom logical functions or steps of the process , and the scope of the preferred embodiments of the invention includes alternative implementations in which the functions may be performed out of the order shown or discussed, including performing the functions substantially concurrently or in the reverse order depending upon the functions involved, which should It is understood by those skilled in the art to which the embodiments of the present invention belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in flowcharts or otherwise described herein, for example, may be considered an ordered listing of executable instructions for implementing the logical functions, may be embodied in any computer-readable medium, For use with, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions from an instruction execution system, apparatus, or apparatus) or equipment. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), Read Only Memory (ROM), Erasable Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, followed by editing, interpretation, or other suitable medium as necessary process to obtain the program electronically and then store it in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented by any one of the following techniques known in the art, or a combination thereof: discrete with logic gates for implementing logic functions on data signals Logic circuits, application specific integrated circuits with suitable combinational logic gates, Programmable Gate Arrays (PGA), Field Programmable Gate Arrays (FPGA), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those skilled in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, one or a combination of the steps of the method embodiment is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present invention have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and should not be construed as limiting the present invention. Embodiments are subject to variations, modifications, substitutions and variations.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810023519.XA CN108307011B (en) | 2018-01-10 | 2018-01-10 | Electronic device, control method and storage medium thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810023519.XA CN108307011B (en) | 2018-01-10 | 2018-01-10 | Electronic device, control method and storage medium thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108307011A CN108307011A (en) | 2018-07-20 |
CN108307011B true CN108307011B (en) | 2020-07-14 |
Family
ID=62868540
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810023519.XA Expired - Fee Related CN108307011B (en) | 2018-01-10 | 2018-01-10 | Electronic device, control method and storage medium thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108307011B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110427164B (en) * | 2019-07-31 | 2022-04-19 | 联想(北京)有限公司 | Method for exposing component and electronic equipment |
CN113630484B (en) * | 2020-05-07 | 2024-03-19 | Oppo广东移动通信有限公司 | Equipment control method, device, storage medium and electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203119975U (en) * | 2013-02-25 | 2013-08-07 | 广东欧珀移动通信有限公司 | Fall-to-break prevention structure for touch screens and digital product |
CN105554196A (en) * | 2016-01-26 | 2016-05-04 | 孔岳 | Full-screen mobile phone |
US9729187B1 (en) * | 2016-02-01 | 2017-08-08 | Otter Products, Llc | Case with electrical multiplexing |
CN107094194B (en) * | 2017-05-09 | 2019-12-27 | 京东方科技集团股份有限公司 | Mobile terminal and fall protection method thereof |
-
2018
- 2018-01-10 CN CN201810023519.XA patent/CN108307011B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN108307011A (en) | 2018-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10791406B2 (en) | Method and apparatus for processing sound hole of speaker and electronic device | |
CN108234710B (en) | Electronic device and control method, device and storage medium thereof | |
US9609438B2 (en) | Speaker apparatus and electronic device having the same | |
US8477953B2 (en) | Portable media delivery system | |
KR20140021115A (en) | Status change control method and electronic device supporting the same | |
CN108307011B (en) | Electronic device, control method and storage medium thereof | |
CN105187700A (en) | Automatic camera pop-up device and terminal | |
CN204156923U (en) | SIM card fixture and mobile terminal | |
CN107613073B (en) | Shell assembly, mobile terminal and control method thereof | |
CN105559696A (en) | Equipment control method, equipment control system and terminal | |
EP2605498A1 (en) | Earphone connection detecting system and mobile device for supporting the system | |
CN105245647A (en) | Card slot automatic ejection device and electronic equipment | |
CN104199633B (en) | Multimedia play equipment, player automatic identification equipment and method | |
CN105263043A (en) | Control method and device of smart home equipment, and terminal | |
CN107682486B (en) | A casing assembly, a mobile terminal and a control method thereof | |
EP1932632A3 (en) | Video reproducing apparatus | |
CN110691302B (en) | Cleaning method, device and terminal | |
CN108366162A (en) | Electronic device, control method thereof, and storage medium | |
CN109460178B (en) | Sliding display method and device of sliding component | |
US20200244809A1 (en) | Method of automatically playing a voice message, and smart phone and computer program product implementing the same | |
CN108347506A (en) | Electronic device, control method thereof, and storage medium | |
CN108390982B (en) | Electronic device and control method, device and storage medium thereof | |
JP4193840B2 (en) | Electronics | |
JP2022043895A (en) | Information processing device and information processing program | |
CN105163053A (en) | Video projection method and apparatus |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200714 |
|
CF01 | Termination of patent right due to non-payment of annual fee |