CN109144462B - Sound production control method and device, electronic device and computer readable medium - Google Patents
Sound production control method and device, electronic device and computer readable medium Download PDFInfo
- Publication number
- CN109144462B CN109144462B CN201810817948.4A CN201810817948A CN109144462B CN 109144462 B CN109144462 B CN 109144462B CN 201810817948 A CN201810817948 A CN 201810817948A CN 109144462 B CN109144462 B CN 109144462B
- Authority
- CN
- China
- Prior art keywords
- screen
- electronic device
- sound
- initial
- driving
- 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
- 238000000195 production control method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 44
- 238000004519 manufacturing process Methods 0.000 claims abstract description 10
- 230000015654 memory Effects 0.000 claims description 26
- 238000001514 detection method Methods 0.000 claims description 14
- 230000005236 sound signal Effects 0.000 claims description 12
- 238000003860 storage Methods 0.000 claims description 7
- 238000003825 pressing Methods 0.000 abstract description 12
- 230000000694 effects Effects 0.000 abstract description 11
- 230000000875 corresponding effect Effects 0.000 description 29
- 230000002093 peripheral effect Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 239000003550 marker Substances 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000001133 acceleration Effects 0.000 description 3
- 230000001413 cellular effect Effects 0.000 description 3
- 210000001061 forehead Anatomy 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 239000000919 ceramic Substances 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 229910000838 Al alloy Inorganic materials 0.000 description 1
- 229910000851 Alloy steel Inorganic materials 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 238000005452 bending Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 210000005069 ears Anatomy 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000005284 excitation Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 229910052751 metal Inorganic materials 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请实施例公开了一种发声控制方法、装置、电子装置及计算机可读介质,涉及电子装置技术领域。该方法包括:当电子装置处于屏幕振动发声状态下,获取电子装置的当前发声音量,作为初始音量;确定初始音量对应的驱动参数,其中,激励器根据驱动参数输出驱动力,以驱动屏幕振动发声;当检测到作用于屏幕的压力值时,根据压力值调整驱动参数;控制激励器根据调整后的驱动参数驱动屏幕振动发声。因此,不仅可以通过屏幕或后盖的振动方式来发声,可以避免在电子装置上设置出音孔,还能够在电子装置的屏幕振动发声的时候,根据用户对屏幕的按压就是调整用户驱动屏幕振动的驱动参数,改善屏幕振动发声效果。
Embodiments of the present application disclose a sound production control method, device, electronic device, and computer-readable medium, which relate to the technical field of electronic devices. The method includes: when the electronic device is in a state of screen vibration and sound production, acquiring the current sound volume of the electronic device as an initial volume; determining a driving parameter corresponding to the initial volume, wherein the exciter outputs a driving force according to the driving parameter to drive the screen to vibrate and sound ; When detecting the pressure value acting on the screen, adjust the driving parameters according to the pressure value; control the exciter to drive the screen to vibrate and sound according to the adjusted driving parameters. Therefore, not only can sound be produced by the vibration of the screen or the back cover, it can avoid setting a sound hole on the electronic device, but also when the screen of the electronic device vibrates and sounds, according to the user's pressing on the screen, the user can drive the screen to vibrate. to improve the sound effect of screen vibration.
Description
技术领域technical field
本申请涉及电子装置技术领域,更具体地,涉及一种发声控制方法、装置、电子装置及计算机可读介质。The present application relates to the technical field of electronic devices, and more particularly, to a sound production control method, device, electronic device, and computer-readable medium.
背景技术Background technique
目前,电子装置,诸如手机,平板电脑等中是通过扬声器发声以将声音信号输出。然而,扬声器的设置占据了较大的设计空间,从而导致电子装置不符合薄型化设计的方向。Currently, electronic devices, such as mobile phones, tablet computers, etc., emit sound through speakers to output sound signals. However, the arrangement of the speaker occupies a large design space, so that the electronic device does not conform to the direction of thin design.
发明内容SUMMARY OF THE INVENTION
本申请提出了一种发声控制方法、装置、电子装置及计算机可读介质,以改善上述缺陷。The present application proposes a voice control method, device, electronic device and computer-readable medium to improve the above-mentioned defects.
第一方面,本申请实施例提供了一种发声控制方法,应用于电子装置,所述电子装置包括屏幕、用于驱动所述屏幕振动发声的激励器。所述方法包括:当所述电子装置处于屏幕振动发声状态下,获取所述电子装置的当前发声音量,作为初始音量;确定所述初始音量对应的初始驱动参数;检测所述屏幕接收到的压力值,根据所述压力值调整所述初始驱动参数;控制所述激励器根据调整后的所述驱动参数驱动所述屏幕振动发声。In a first aspect, an embodiment of the present application provides a sound emission control method, which is applied to an electronic device, where the electronic device includes a screen and an exciter for driving the screen to vibrate and emit sound. The method includes: when the electronic device is in a state of screen vibration and sound production, acquiring the current sound volume of the electronic device as an initial volume; determining an initial drive parameter corresponding to the initial volume; detecting the pressure received by the screen value, adjust the initial driving parameter according to the pressure value; control the exciter to drive the screen to vibrate and emit sound according to the adjusted driving parameter.
第二方面,本申请实施例还提供了一种发声控制装置,应用于电子装置,所述电子装置包括屏幕、用于驱动所述屏幕振动发声的激励器。所述发声控制装置包括:获取单元、确定单元、调整单元和驱动单元。获取单元,用于当所述电子装置处于屏幕振动发声状态下,获取所述电子装置的当前发声音量,作为初始音量。确定单元,用于确定所述初始音量对应的初始驱动参数。调整单元,用于检测所述屏幕接收到的压力值,根据所述压力值调整所述驱动参数。驱动单元,用于控制所述激励器根据调整后的所述驱动参数驱动所述屏幕振动发声。In a second aspect, an embodiment of the present application further provides a sound emission control device, which is applied to an electronic device, where the electronic device includes a screen and an exciter for driving the screen to vibrate and emit sound. The sound production control device includes: an acquisition unit, a determination unit, an adjustment unit and a drive unit. The acquiring unit is configured to acquire the current sound volume of the electronic device as the initial volume when the electronic device is in the state of screen vibration and sound production. A determination unit, configured to determine the initial drive parameter corresponding to the initial volume. An adjustment unit, configured to detect the pressure value received by the screen, and adjust the driving parameter according to the pressure value. A driving unit, configured to control the exciter to drive the screen to vibrate and emit sound according to the adjusted driving parameters.
第三方面,本申请实施例还提供了一种电子装置,包括屏幕、用于驱动所述屏幕振动发声的激励器。电子装置还包括:处理器、检测电路和驱动电路。处理器,用于当所述电子装置处于屏幕振动发声状态下,获取所述电子装置的当前发声音量,作为初始音量,确定所述初始音量对应的初始驱动参数。检测电路,用于检测所述屏幕接收到的压力值,并发送至所述处理器。所述处理器还用于根据所述压力值调整所述初始驱动参数。驱动电路,用于控制所述激励器根据调整后的驱动参数驱动所述屏幕振动发声。In a third aspect, an embodiment of the present application further provides an electronic device, including a screen and an exciter for driving the screen to vibrate and emit sound. The electronic device further includes: a processor, a detection circuit and a drive circuit. The processor is configured to obtain the current sound volume of the electronic device when the electronic device is in the state of screen vibration and sound, as the initial volume, and determine the initial drive parameter corresponding to the initial volume. A detection circuit is used to detect the pressure value received by the screen and send it to the processor. The processor is also configured to adjust the initial drive parameter according to the pressure value. A driving circuit is used to control the exciter to drive the screen to vibrate and emit sound according to the adjusted driving parameters.
第四方面,本申请实施例还提供了一种电子装置,包括屏幕、多个用于驱动所述屏幕发声的激励器,所述多个激励器对应所述屏幕的不同位置;还包括存储器和处理器,所述存储器与所述处理器耦合;所述存储器存储指令,当所述指令由所述处理器执行时以使所述处理器执行上述方法。In a fourth aspect, embodiments of the present application further provide an electronic device, including a screen, a plurality of exciters for driving the screen to emit sound, the plurality of exciters corresponding to different positions of the screen; and a memory and a processor, the memory coupled to the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the above-described method.
第五方面,本申请实施例还提供了一种计算机可读介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a fifth aspect, an embodiment of the present application further provides a computer-readable medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the foregoing method.
本申请实施例提供的发声控制方法、装置、电子装置及计算机可读介质,当所述电子装置处于屏幕振动发声状态下,确定当前发声音量的初始音量,并确定该初始音量对应的初始驱动参数。在检测到作用于所述屏幕的压力值时,根据所述压力值调整所述初始驱动参数,控制所述激励器根据调整后的所述驱动参数驱动所述屏幕振动发声。因此,不仅可以通过屏幕或后盖的振动方式来发声,可以避免在电子装置上设置出音孔,还能够在电子装置的屏幕振动发声的时候,根据用户对屏幕的按压调整用户驱动屏幕振动的驱动参数,改善屏幕振动发声效果。In the sound production control method, device, electronic device and computer-readable medium provided by the embodiments of the present application, when the electronic device is in the state of screen vibration and sound production, the initial volume of the current sound volume is determined, and the initial drive parameter corresponding to the initial volume is determined . When the pressure value acting on the screen is detected, the initial driving parameter is adjusted according to the pressure value, and the exciter is controlled to drive the screen to vibrate and emit sound according to the adjusted driving parameter. Therefore, not only can the sound be produced by the vibration of the screen or the back cover, it can avoid setting a sound hole on the electronic device, but also when the screen of the electronic device vibrates and sounds, according to the user's pressing on the screen to adjust the user-driven screen vibration Drive parameters to improve the sound effect of screen vibration.
本申请实施例的其他特征和优点将在随后的说明书阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请实施例而了解。本申请实施例的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the embodiments of the present application will be set forth in the description that follows, and in part will be apparent from the description, or learned by practice of the embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description, claims, and drawings.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出了本申请实施例提供的电子装置的第一视角下的结构示意图;FIG. 1 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application from a first perspective;
图2示出了本申请实施例提供的电子装置的第二视角下的结构示意图;FIG. 2 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application from a second perspective;
图3示出了本申请一实施例提供的发声控制方法的方法流程图;FIG. 3 shows a method flow chart of a sound production control method provided by an embodiment of the present application;
图4示出了本申请实施例提供的作用于屏幕的压力的示意图;FIG. 4 shows a schematic diagram of the pressure acting on the screen provided by the embodiment of the present application;
图5示出了本申请另一实施例提供的发声控制方法的方法流程图;FIG. 5 shows a method flow chart of a sound production control method provided by another embodiment of the present application;
图6示出了本申请又一实施例提供的发声控制方法的方法流程图;FIG. 6 shows a method flow chart of a sound production control method provided by another embodiment of the present application;
图7示出了本申请实施例提供的发声控制装置的模块框图;FIG. 7 shows a block diagram of a module of a sound emission control device provided by an embodiment of the present application;
图8示出了本申请一实施例提供的电子装置的模块框图;FIG. 8 shows a module block diagram of an electronic device provided by an embodiment of the present application;
图9示出了本申请另一实施例提供的电子装置的模块框图;FIG. 9 shows a module block diagram of an electronic device provided by another embodiment of the present application;
图10示出了本申请实施例提供的用于执行本申请实施例提供的方法的电子装置的模块框图。FIG. 10 shows a module block diagram of an electronic device provided by an embodiment of the present application for executing the method provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Thus, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
显示屏通常在手机、平板电脑等电子装置中所起到的作用为显示文本、图片、图标或者视频等内容。而伴随着触控技术的发展,越来越多的电子装置所设置的显示屏为触控显示屏,在设置触控显示屏的情况下,当检测到用户在触控显示屏上进行拖拽、单击、双击、滑动等触控操作时,可以对用户的触控操作进行响应。Display screens usually play a role in electronic devices such as mobile phones and tablet computers to display content such as text, pictures, icons, or videos. With the development of touch technology, more and more electronic devices set the display screen to be a touch display screen. In the case of setting a touch display screen, when it is detected that the user is dragging on the touch display screen , click, double-click, slide and other touch operations, it can respond to the user's touch operations.
随着用户对所显示内容的清晰度以及精细度要求越来越高,更多的电子装置采用尺寸较大的触控显示屏。但是,在设置尺寸较大的触控显示屏的过程中,发现电子装置前端所设置的前置摄像头、接近光传感器、听筒等功能器件会影响触控显示屏所能扩展到的区域。As users have higher and higher requirements for the clarity and fineness of the displayed content, more electronic devices use larger touch display screens. However, in the process of setting up a touch display screen with a larger size, it is found that functional devices such as a front camera, a proximity light sensor, and an earpiece set at the front end of the electronic device will affect the area that the touch display screen can expand to.
通常电子装置包括前面板、后盖以及边框。在前面板包括顶部区、中部屏幕区和下部按键区。通常,上额区设置有听筒出音孔以及前置摄像头等功能器件,中部屏幕区设置有触控显示屏,下部按键区设置有一到三个物理按键。而随着技术的发展,下部按键区被逐渐取消,原本设置在下部按键区的物理按键由触控显示屏中的虚拟按键替代。Generally, an electronic device includes a front panel, a back cover, and a frame. The front panel includes a top area, a middle screen area and a lower key area. Usually, the upper forehead area is provided with functional devices such as the earpiece sound hole and the front camera, the middle screen area is provided with a touch display screen, and the lower key area is provided with one to three physical buttons. With the development of technology, the lower key area is gradually cancelled, and the physical keys originally set in the lower key area are replaced by virtual keys in the touch screen.
而上额区所设置的听筒出音孔对于手机的功能支持较为重要,不易轻易的取消,所以将触控显示屏的可显示区域拓展到覆盖上额区具有较大的难度。在经过一些列研究后,发明人发现可以通过控制手机的屏幕、边框或者后盖振动的方式来发出声音,从而可以取消听筒出音孔的设置。The earpiece sound hole set in the upper forehead area is more important for the function support of the mobile phone, and it is not easy to cancel easily, so it is difficult to expand the displayable area of the touch screen to cover the upper forehead area. After a series of studies, the inventor found that the sound can be produced by controlling the vibration of the screen, frame or back cover of the mobile phone, so that the setting of the earpiece sound hole can be cancelled.
示例性地,请参阅图1和2,示出了本申请实施例提供的一种电子装置100。其中,图1为电子装置的前视图,图2为电子装置的侧视图。Illustratively, referring to FIGS. 1 and 2 , an
电子装置100包括电子本体部10,所述电子本体部10包括壳体12和设置在所述壳体12的屏幕120,壳体12包括前面板125、后盖127以及边框126,边框126用于连接前面板125和后盖127,屏幕120设置在前面板125上。The
电子装置还包括激励器131,该激励器131用于驱动电子装置的振动部件振动,具体地,振动部件为所述电子装置的屏幕120或壳体12的至少一个,也就是说,振动部件可以是屏幕120,也可以是壳体12,还可以是屏幕120和壳体12的组合。作为一种实施方式,当振动部件为壳体12时,振动部件可以是壳体12的后盖。The electronic device further includes an
于本申请实施例中,所述振动部件为屏幕120,则激励器131与屏幕120连接,用于带动屏幕120振动。具体地,所述激励器131贴附于屏幕120下方,则激励器131可以是压电驱动器或者马达。作为一种实施方式,激励器131为压电驱动器。压电驱动器通过力矩作用将自身形变传递给屏幕120,从而屏幕120振动发声。屏幕120包括触控屏109和显示面板111,显示面板111位于触摸屏109的下方,压电驱动器贴附于显示面板111的下方,即显示面板111的远离触摸屏109的一面。压电驱动器包括多层压电陶瓷片。当一片多层压电陶瓷片发声膨胀和收缩时,其将带动屏幕发生弯曲变形,如此反复,整个屏幕形成弯曲振动,从而屏幕可以推动空气并产生声音。In the embodiment of the present application, the vibration component is the
作为一种实施方式,电子装置100包括驱动电路。激励器131与电子装置的驱动电路连接,驱动电路用于根据振动参数输入控制信号值激励器131,以驱动激励器131振动,从而带动振动部件振动。具体地,驱动电路可以是电子装置的处理器,也可以是电子装置内的能够产生驱动电压或电流的集成电路。驱动电路输出高低电平的驱动信号至激励器131,激励器131根据该驱动信号振动,而驱动电路输出的驱动信号的电参数不同,则会导致激励器131的振动参数不同,例如,驱动信号的占空比对应激励器131的振动频率,驱动信号的幅度对应激励器131的振动幅度等。As an embodiment, the
在本申请实施例中,多个激励器131可以均匀分布于屏幕120,以使屏幕120均分为多个单独进行发声的区域。例如,激励器的个数为4个,则屏幕可以沿竖直方向以及水平方向的中心线均分为4块方形区域,4个激励器设置于4块方形区域下方,4个激励器与4块方形区域一一对应。当然,激励器的个数在本申请实施例中并不作为限定。In this embodiment of the present application, a plurality of
通过上述屏幕振动的方式,可以实现电子装置外放音乐,用户在不靠近电子装置的情况下,可以听到音乐。但是,发明人在研究中发现,如果屏幕在振动发声的时候,用户手指或者其他的重物按压在屏幕上,则会影响屏幕的振动,而影响屏幕发出的声音。Through the above-mentioned way of screen vibration, the electronic device can play music, and the user can listen to the music without being close to the electronic device. However, the inventor found in research that if the user's finger or other heavy object presses on the screen when the screen vibrates and sounds, it will affect the vibration of the screen and the sound produced by the screen.
因此,为了解决该技术问题,本申请实施例提供了一种发声控制方法,请参阅图3所示,该方法用于在电子装置的屏幕振动发声的时候,基于按压在屏幕上的压力值而调整屏幕的振动,以改善屏幕振动发声效果。具体地,该方法包括:S301至S304。Therefore, in order to solve this technical problem, an embodiment of the present application provides a sound production control method, as shown in FIG. 3 , the method is used to generate sound based on the pressure value pressed on the screen when the screen of the electronic device vibrates and emits sound. Adjust the vibration of the screen to improve the sound effect of screen vibration. Specifically, the method includes: S301 to S304.
S301:当所述电子装置处于屏幕振动发声状态下,获取所述电子装置的当前发声音量,作为初始音量。S301: When the electronic device is in a state of screen vibration and sound, obtain the current sound volume of the electronic device as an initial volume.
具体地,可以通过检测用户对电子装置的应用程序的操作来确定当前是否处于振动发声模式,其中,该应用程序能够播放语音,例如是音乐播放软件或者通话应用。具体地,电子装置处于振动发声模式,可以是接收到发声请求。发声请求为用户指示移动终端,需要控制屏幕振动而发声的信息。作为一种实施方式,发声请求可以是提醒信息、也可以是语音播放请求。Specifically, it can be determined whether the user is currently in a vibration sounding mode by detecting an operation of an application program of the electronic device, wherein the application program can play voice, for example, a music playing software or a calling application. Specifically, the electronic device is in a vibration sounding mode, which may be receiving a sounding request. The sound request is the information that the user instructs the mobile terminal and needs to control the vibration of the screen to sound. As an implementation manner, the voice request may be a reminder message or a voice playback request.
其中,提醒信息包括通话提醒信息、短信提醒信息以及闹铃提醒信息等用于提醒用户某些事件已经触发的信息。例如,通话提醒信息用于提醒用户当前有来电,则可以是在获取到提醒信息之后,没有发声之前,电子装置进入振动发声模式,即此时处于等待发声的状态下。然后,在获取到振动参数之后,再控制屏幕或者后盖中的至少一个振动发声,从而发出用于提醒的声音,例如,来电铃声。The reminder information includes call reminder information, SMS reminder information, and alarm reminder information, etc., which are used to remind the user that certain events have been triggered. For example, if the call reminder information is used to remind the user that there is an incoming call, it may be that the electronic device enters the vibration sounding mode after obtaining the reminder information and before sounding, that is, it is in a state of waiting for sounding. Then, after the vibration parameters are acquired, at least one of the screen or the back cover is controlled to vibrate and emit sound, so as to emit a sound for reminding, for example, a ringtone for an incoming call.
作为另一种实施方式,发声请求可以是在移动终端发声的过程中,每次播放语音的请求。则本申请实施例的方法,用于在移动终端发声的过程中,采集环境噪声而调整振动部件的振动,进而来调整发声。As another implementation manner, the voice request may be a request to play the voice every time during the process of the mobile terminal voice. Then, the method of the embodiment of the present application is used to collect environmental noise and adjust the vibration of the vibrating component in the process of sounding by the mobile terminal, and then adjust the sounding.
例如,用户点击某个视频APP的播放按钮,且电子装置当前未处于静音状态,则检测到该播放按钮被触发时,就进入屏幕或者后盖中的至少一个振动发声模式,通过屏幕的振动播放视频的语音。For example, if the user clicks the play button of a video APP, and the electronic device is not currently in the mute state, when it is detected that the play button is triggered, it will enter at least one vibration sounding mode in the screen or the back cover, and play through the vibration of the screen. video voice.
当电子装置来电时,即电话铃声或者振动提醒响起时,电子装置能够检测到,并在屏幕上显示来电界面。而用户在来电界面内点击接听键,以实现电子装置当前的SIM卡的号码与来电号码建立通话连接。具体地,可以通过电子装置的系统内的电话管理器来监听电子装置的电话状态,由此能够监测到电子装置是否处于通话模式。则电话管理器为电子装置的系统内的应用程序模块,用户获取电子装置的通话状态,例如,当电子装置的系统为安卓系统时,该电话管理器为TelephonyManager。When the electronic device receives an incoming call, that is, when the phone ringing or the vibration reminder rings, the electronic device can detect and display the incoming call interface on the screen. On the other hand, the user clicks the answer button in the incoming call interface, so as to establish a call connection between the current SIM card number of the electronic device and the incoming call number. Specifically, the phone state of the electronic device can be monitored through a phone manager in the system of the electronic device, thereby being able to monitor whether the electronic device is in a call mode. The phone manager is an application module in the system of the electronic device, and the user obtains the call status of the electronic device. For example, when the system of the electronic device is the Android system, the phone manager is the TelephonyManager.
在确定电子装置处于屏幕振动发声状态之后,获取电子装置的当前发声音量,该发声音量为电子装置当前输出的语音的音量,例如,通话音量、系统音量或者音乐播放APP的音乐音量等。而对当前发声音量的获取,可以先确定当前正在工作的激励器,该激励器正在驱动电子装置的屏幕振动发声,根据该激励器的振动参数确定当前发声音量,例如,该振动参数为振动幅度,获取激励器的振动幅度,根据预设的振动幅度与发声音量的对应关系,获取该当前发声音量。当然,还可以是根据电子装置内的操作系统的程序模块获取该电子装置的当前发声音量。例如,mAudioManager=(AudioManager),getSystemService(Context.AUDIO_SERVICE)。After it is determined that the electronic device is in the screen vibrating and sounding state, the current sound volume of the electronic device is obtained, where the sound volume is the volume of the voice currently output by the electronic device, for example, the call volume, the system volume, or the music volume of a music playing APP, etc. For the acquisition of the current sound volume, you can first determine the currently working exciter, which is driving the screen of the electronic device to vibrate and sound, and determine the current sound volume according to the vibration parameters of the exciter. For example, the vibration parameter is the vibration amplitude , obtain the vibration amplitude of the exciter, and obtain the current sound volume according to the preset correspondence between the vibration amplitude and the sound volume. Of course, the current sound volume of the electronic device may also be acquired according to a program module of an operating system in the electronic device. For example, mAudioManager=(AudioManager), getSystemService(Context.AUDIO_SERVICE).
具体地,获取系统音量的方式为:Specifically, the way to obtain the system volume is:
max=mAudioManager.getStreamMaxVolume(AudioManager.STREAM_SYSTEM);current=mAudioManager.getStreamVolume(AudioManager.STREAM_SYSTEM);Log.d(“SYSTEM”,“max:”+max+”current:”+current)。max=mAudioManager.getStreamMaxVolume(AudioManager.STREAM_SYSTEM); current=mAudioManager.getStreamVolume(AudioManager.STREAM_SYSTEM); Log.d("SYSTEM","max:"+max+"current:"+current).
由此,确定电子装置当前播放语音的应用程序所使用的是系统音量、通话音量还是独立的音量,从而确定该当前发声音量,例如,所使用的是系统音量,则可以通过上述的方法获取到当前播放语音的应用程序的发声音量,即电子装置的当前发声音量,并记为初始音量。In this way, it is determined whether the application program currently playing the voice of the electronic device uses the system volume, the call volume or the independent volume, so as to determine the current sound volume. For example, if the system volume is used, it can be obtained by the above method. The sound volume of the application currently playing voice, that is, the current sound volume of the electronic device, is recorded as the initial volume.
S302:确定所述初始音量对应的初始驱动参数。S302: Determine initial driving parameters corresponding to the initial volume.
其中,所述激励器根据驱动参数输出驱动力,以驱动所述屏幕振动发声。Wherein, the exciter outputs a driving force according to driving parameters, so as to drive the screen to vibrate and emit sound.
在电子装置内预设有第一对应关系,该第一对应关系包括多个发声音量与驱动参数的对应关系,如下表1所示:A first correspondence is preset in the electronic device, and the first correspondence includes a plurality of correspondences between sound volume and driving parameters, as shown in Table 1 below:
表1Table 1
根据该上述对应关系就能够获取到初始音量对应的初始驱动参数。According to the above-mentioned corresponding relationship, the initial driving parameters corresponding to the initial volume can be obtained.
其中,激励器根据驱动参数输出驱动力,以驱动所述屏幕振动发声。具体地,驱动参数的单位为牛顿,即力的量纲,如上表所示F1,表示该驱动参数为F1,所能输出的驱动力为F1,该驱动力F1能够驱动屏幕振动,从而输出V1分贝的音量。另外,该驱动力可以是一个激励器输出的力,也可以是多个激励器共同输出的驱动力。Wherein, the exciter outputs a driving force according to the driving parameters, so as to drive the screen to vibrate and sound. Specifically, the unit of the driving parameter is Newton, that is, the dimension of force. As shown in the above table, F1 means that the driving parameter is F1, and the driving force that can be output is F1. The driving force F1 can drive the screen to vibrate, thereby outputting V1 volume in decibels. In addition, the driving force may be a force output by one exciter, or may be a driving force jointly output by a plurality of exciters.
S303:检测所述屏幕接收到的压力值,根据所述压力值调整所述初始驱动参数。S303: Detect the pressure value received by the screen, and adjust the initial driving parameter according to the pressure value.
具体地,屏幕下设置有检测电路,该检测电路能够检测作用于屏幕的压力值,具体地,该检测电路可以是压力传感器,在检测到有压力值作用与屏幕上时,则表示有物体压在屏幕上,则可能会对屏幕的振动造成影响,然后根据该压力值调整驱动参数。Specifically, a detection circuit is provided under the screen, and the detection circuit can detect the pressure value acting on the screen. Specifically, the detection circuit can be a pressure sensor. When a pressure value acting on the screen is detected, it means that there is an object pressure. On the screen, it may affect the vibration of the screen, and then adjust the driving parameters according to the pressure value.
具体地,可以是根据压力值减小所述初始驱动参数。驱动参数表示所输出的驱动力的大小,驱动参数越大,则输出的驱动力越大,即驱动参数与驱动力正相关。而减小驱动参数能够减小激励器作用在屏幕上的驱动力的大小,则可以减小屏幕的振动幅度,从而减小屏幕的发声音量,由此,如果作用于屏幕上的压力,对屏幕的振动造成限位作用的时候,如果继续保持原来的驱动力驱动屏幕振动,可能会造成屏幕与外力之间产生较大的挤压,而容易导致屏幕被损坏,而此时降低驱动参数,能够降低激励器作用到屏幕上的驱动力,而减少屏幕的振动幅度,进而减少屏幕与外力之间的作用力,而保护屏幕。Specifically, the initial driving parameter may be reduced according to the pressure value. The driving parameter indicates the magnitude of the output driving force. The larger the driving parameter, the larger the output driving force, that is, the driving parameter is positively correlated with the driving force. Reducing the driving parameter can reduce the size of the driving force of the exciter acting on the screen, which can reduce the vibration amplitude of the screen, thereby reducing the sound volume of the screen. When the vibration of the screen causes the limiting effect, if the original driving force is continued to drive the screen to vibrate, it may cause a large squeeze between the screen and the external force, which may easily lead to damage to the screen. At this time, reducing the driving parameters can The driving force of the exciter acting on the screen is reduced, and the vibration amplitude of the screen is reduced, thereby reducing the force between the screen and the external force, and protecting the screen.
作为另一种实施方式,还可以是根据所述压力值增大所述初始驱动参数。从而能够增大激励器作用在屏幕上的驱动力。具体地,由于在屏幕振动的时候,如果外力作用在屏幕上,如用户的手指按压在屏幕上,则用户手指按压屏幕的压力与驱动屏幕振动的驱动力会相互影响,如图4所述,假设用户手指按压在屏幕上,则手指的压力F1垂直于屏幕向下,而激励器作用于屏幕上的驱动力F2垂直于屏幕向上,由于压力F1与驱动力F2的方向相反,则压力F1会影响驱动力F2带动屏幕振动,而导致屏幕振动幅度变小。因此,如果增大驱动力F2,则就能够克服压力F1的作用。假如F2比F1大,则实际作用在屏幕上的驱动力为F2-F1,当增大F2的时候,实际驱动力会增大,则振动幅度也会增大,同时,用户的手指具有一定的弹性,而非刚性物体,对屏幕的振动的限位位移一定的区域范围内,也就是说,手指表面能够向内凹陷,合理设置驱动力的增大幅度,能够保证振动幅度与手指按压屏幕之前的振动幅度相同,也就是说,在调整驱动力之后,屏幕所发出的音量与初始音量相同。As another implementation manner, the initial driving parameter may also be increased according to the pressure value. Thus, the driving force of the exciter acting on the screen can be increased. Specifically, when the screen vibrates, if an external force acts on the screen, such as the user's finger pressing on the screen, the pressure of the user's finger pressing the screen and the driving force driving the screen to vibrate will affect each other, as shown in FIG. 4 , Assuming that the user's finger is pressed on the screen, the pressure F1 of the finger is perpendicular to the screen downward, and the driving force F2 acting on the screen by the exciter is perpendicular to the screen upward. Since the direction of the pressure F1 and the driving force F2 is opposite, the pressure F1 will be Affecting the driving force F2 drives the screen to vibrate, resulting in a smaller vibration amplitude of the screen. Therefore, if the driving force F2 is increased, the effect of the pressure F1 can be overcome. If F2 is larger than F1, the actual driving force acting on the screen is F2-F1. When F2 is increased, the actual driving force will increase, and the vibration amplitude will also increase. Elasticity, not rigid objects, can limit the vibration of the screen within a certain area, that is, the surface of the finger can be recessed inward, and the increase of the driving force can be reasonably set to ensure that the vibration amplitude is the same as before the finger presses the screen. The vibration amplitude is the same, that is, after adjusting the driving force, the volume emitted by the screen is the same as the initial volume.
具体地,考虑到作用于屏幕上的压力值与激励器作用于屏幕上的驱动力之间的关系,根据所述压力值增大所述初始驱动参数的具体实施方式为:确定所述初始音量对应的初始驱动参数所对应的初始驱动力;获取所述初始驱动力与所述压力值之间的差值;根据所述差值增大所述初始驱动参数。Specifically, considering the relationship between the pressure value acting on the screen and the driving force acting on the screen by the exciter, the specific implementation of increasing the initial driving parameter according to the pressure value is: determining the initial volume The initial driving force corresponding to the corresponding initial driving parameter; obtaining the difference between the initial driving force and the pressure value; and increasing the initial driving parameter according to the difference.
根据上述的表1能够获取到初始音量对应的驱动参数,而驱动参数表征驱动力大小,例如,驱动参数F1,则表示驱动力为F1,而作用在屏幕上的压力值可以通过检测电路,例如,压力传感器检测到压力值,然后,再获取初始驱动力与所述压力值之间的差值,该差值反应了屏幕上的压力对激励器所输出的驱动力的影响,则如果能够将该差值消除,则就能够消除外界压力对屏幕振动的影响。According to the above table 1, the driving parameters corresponding to the initial volume can be obtained, and the driving parameters represent the driving force. For example, the driving parameter F1 indicates that the driving force is F1, and the pressure value acting on the screen can pass through the detection circuit, such as , the pressure sensor detects the pressure value, and then obtains the difference between the initial driving force and the pressure value, which reflects the influence of the pressure on the screen on the driving force output by the actuator. If the difference is eliminated, the influence of external pressure on the vibration of the screen can be eliminated.
因此,将初始音量对应的驱动力记为初始驱动力,则将上述差值与初始驱动力求和,将该和作为调整后的驱动力,再根据上述表1获取该调整后的驱动力对应的驱动参数,作为调整后的驱动参数。Therefore, the driving force corresponding to the initial volume is recorded as the initial driving force, the above difference is summed with the initial driving force, and the sum is regarded as the adjusted driving force, and then the adjusted driving force is obtained according to Table 1 above. Drive parameter, as the adjusted drive parameter.
另外,需要说明的时候,为了避免非用户的按压或者重物的按压而对屏幕振动造成影响的情况下,依然去调节振动参数而造成功耗过高或者影响屏幕振动效果等,当检测到作用于所述屏幕的压力值时,根据所述压力值调整所述初始驱动参数的具体实施方式可以是:当检测到作用于所述屏幕的压力值时,判断所述压力值是否位于预设压力范围内。具体地,在获取到作用于所述屏幕的压力值之后,判断该压力值是否位于预设压力范围内,其中,预设压力范围包括第一临界值和第二临界值,则压力值位于该预设压力范围内表示该压力值大于或等于第一临界值,且小于或等于第二临界值,而预设压力范围内的压力值表示作用于屏幕上的压力值可以认为是用户的按压操作而造成的,则小于第一临界值的压力值较小,可以认为不是用户操作而造成,而大于第二临界值的压力值过大,也不适合再对屏幕的驱动调整。因此,若位于预设压力范围内,则根据所述压力值调整所述驱动参数。In addition, when it needs to be explained, in order to avoid the impact on the screen vibration caused by the non-user's pressing or the pressing of heavy objects, it is still necessary to adjust the vibration parameters to cause excessive power consumption or affect the screen vibration effect, etc. When the effect is detected When the pressure value of the screen is used, the specific implementation of adjusting the initial driving parameter according to the pressure value may be: when detecting the pressure value acting on the screen, judging whether the pressure value is at a preset pressure within the range. Specifically, after acquiring the pressure value acting on the screen, it is determined whether the pressure value is within a preset pressure range, where the preset pressure range includes a first critical value and a second critical value, and the pressure value is within the predetermined pressure range. Within the preset pressure range means that the pressure value is greater than or equal to the first threshold value and less than or equal to the second threshold value, and the pressure value within the preset pressure range means that the pressure value acting on the screen can be considered as a user's pressing operation As a result, the pressure value less than the first threshold value is small, and it can be considered that the pressure value is not caused by user operation, and the pressure value greater than the second threshold value is too large, which is not suitable for driving adjustment of the screen. Therefore, if it is within a preset pressure range, the driving parameter is adjusted according to the pressure value.
再者,当检测到作用于所述屏幕的压力值时,根据所述压力值调整所述驱动参数的实施方式还可以是:Furthermore, when the pressure value acting on the screen is detected, the implementation manner of adjusting the driving parameter according to the pressure value may also be:
当检测到作用于所述屏幕的压力值时,根据所采集的压力值确定触控区域;When the pressure value acting on the screen is detected, the touch area is determined according to the collected pressure value;
根据该触控区域确定是否所述屏幕与人耳接触;Determine whether the screen is in contact with the human ear according to the touch area;
如果不是,则根据所述压力值调整所述驱动参数。If not, the drive parameter is adjusted according to the pressure value.
其中,根据该触控区域确定是否所述屏幕与人耳接触的具体方式为,获取所述触控区域的轮廓线。具体地,在获取到屏幕上被按压的所有的触摸点之后,将所有的触摸点拟合成一个连续的曲线从而获得轮廓线。判断所述轮廓线与预设的人耳轮廓线是否匹配,其中,预设的人耳轮廓线可以是基于大数据而获取的大部分人耳的轮廓线,也可以是预先采集的用户的耳部贴在屏幕上的轮廓线,从而获取到预设的人耳轮廓线。如果触控区域的轮廓线与预设的人耳轮廓线匹配,则表示屏幕上接触有人耳。Wherein, the specific manner of determining whether the screen is in contact with the human ear according to the touch area is to acquire the outline of the touch area. Specifically, after acquiring all the touch points pressed on the screen, all the touch points are fitted into a continuous curve to obtain a contour line. Determine whether the contour line matches the preset human ear contour line, wherein the preset human ear contour line may be the contour line of most human ears obtained based on big data, or may be the pre-collected user's ear contour line The contour line attached to the screen, so as to obtain the preset human ear contour line. If the outline of the touch area matches the preset outline of the human ear, it means that the screen is in contact with a human ear.
如果是人耳,则表示用户可能正在使用私人收听模式而非公放模式,则不执行根据所述压力值调整所述驱动参数的操作。If it is a human ear, it means that the user may be using the private listening mode instead of the public mode, and the operation of adjusting the driving parameter according to the pressure value is not performed.
S304:控制所述激励器根据调整后的驱动参数驱动所述屏幕振动发声。S304: Control the exciter to drive the screen to vibrate and emit sound according to the adjusted driving parameters.
具体地,驱动电路根据调整后的驱动参数生成驱动信号至激励器,具体地,该驱动信号可以是驱动电压或电流,不同的驱动电压或电流使得激励器所输出的驱动力也不同,而驱动电压或者电流越大,则激励器输出的驱动力越大,则为了增大驱动力,可以提高驱动信号,而为了减小驱动力,可以降低驱动信号。Specifically, the drive circuit generates a drive signal to the exciter according to the adjusted drive parameters. Specifically, the drive signal can be a drive voltage or current. Different drive voltages or currents make the drive force output by the exciter different, and the drive voltage Or the larger the current is, the larger the driving force output by the exciter is. In order to increase the driving force, the driving signal can be increased, and in order to reduce the driving force, the driving signal can be decreased.
由此,可以通过降低驱动参数的方式,减少屏幕的振动幅度从而保护屏幕,而通过提高驱动参数的方式,可以在屏幕因作用在屏幕上的压力而导致屏幕的振动收到抑制的时候,使得振动幅度减小,则如果作用于屏幕的压力的物体具有弹性或者能够被屏幕带动而振动,则通过提高驱动力,增大屏幕的振动,能够使得该物体随着屏幕的振动而振动,而使得屏幕能够进一步使得被减小的振幅有所增大,则合理设置所增大的驱动力,能够使得屏幕在被按压时仍然保持原有的振动幅度,而保持原有的音量。Therefore, by reducing the driving parameters, the vibration amplitude of the screen can be reduced to protect the screen, and by increasing the driving parameters, when the vibration of the screen is suppressed due to the pressure acting on the screen, the screen can be protected. If the vibration amplitude decreases, if the object under pressure acting on the screen is elastic or can be driven by the screen to vibrate, then by increasing the driving force and increasing the vibration of the screen, the object can vibrate with the vibration of the screen, so that the If the screen can further increase the reduced amplitude, the increased driving force can be reasonably set, so that the screen can still maintain the original vibration amplitude and maintain the original volume when the screen is pressed.
但是,对于一些施加在屏幕上的压力,由于施加压力的物体无法发生弹性形变或者重量较大的时候,增大驱动力也无法将被降低的振动幅度提高,则为了克服该问题,请参阅图5,该方法用于在电子装置的屏幕振动发声的时候,基于按压在屏幕上的压力值而调整屏幕的振动,以改善屏幕振动发声效果。具体地,该方法包括:S501至S508。However, for some pressure exerted on the screen, since the object applying the pressure cannot elastically deform or the weight is large, increasing the driving force cannot increase the reduced vibration amplitude. In order to overcome this problem, please refer to Figure 5 , the method is used to adjust the vibration of the screen based on the pressure value pressed on the screen when the screen of the electronic device vibrates and sounds, so as to improve the sound effect of the screen vibration. Specifically, the method includes: S501 to S508.
S501:当所述电子装置处于屏幕振动发声状态下,获取所述电子装置的当前发声音量,作为初始音量。S501: When the electronic device is in a state of screen vibration and sound, obtain the current sound volume of the electronic device as an initial volume.
S502:确定所述初始音量对应的初始驱动参数。S502: Determine initial driving parameters corresponding to the initial volume.
S503:检测到所述屏幕接收到的压力值时,根据所述压力值调整所述初始驱动参数。S503: When the pressure value received by the screen is detected, adjust the initial driving parameter according to the pressure value.
S504:控制所述激励器根据调整后的驱动参数驱动所述屏幕振动发声。S504: Control the exciter to drive the screen to vibrate and emit sound according to the adjusted driving parameters.
S505:获取所述音频采集器所采集的音频信号。S505: Acquire the audio signal collected by the audio collector.
在控制所述激励器根据调整后的所述驱动参数驱动所述屏幕振动发声之后,获取所述音频采集器采集到的音频信号。具体地,可以是在控制所述激励器根据调整后的所述驱动参数驱动所述屏幕振动发声,发送采集指令至音频采集器,该采集指令可以是一个中断请求,然后音频采集器获取到该采集指令之后,采集当前环境下的音频信号。After controlling the exciter to drive the screen to vibrate and emit sound according to the adjusted driving parameters, acquire the audio signal collected by the audio collector. Specifically, the exciter may be controlled to drive the screen to vibrate and sound according to the adjusted driving parameters, and a collection instruction may be sent to the audio collector, where the collection instruction may be an interrupt request, and then the audio collector obtains the After collecting the instruction, collect the audio signal in the current environment.
S506:获取所采集的音频信号的音量与所述初始音量之间的音量差。S506: Acquire the volume difference between the volume of the collected audio signal and the initial volume.
在获取到音频采集器所采集的音频信号之后,计算该音频信号的分贝,就能确定该音频信号的音量,而初始音量的获取可参考前述实施例。然后在取所采集的音频信号的音量与所述初始音量之间的音量差,具体地,如果所采集的音频信号的音量为V2,而初始音量为V1,则音量差为V1-V2的差的绝对值。After the audio signal collected by the audio collector is acquired, the volume of the audio signal can be determined by calculating the decibel of the audio signal. For the acquisition of the initial volume, reference may be made to the foregoing embodiment. Then take the volume difference between the volume of the collected audio signal and the initial volume. Specifically, if the volume of the collected audio signal is V2 and the initial volume is V1, then the volume difference is the difference between V1-V2 the absolute value of .
S507:判断所述音量差是否大于预设值。S507: Determine whether the volume difference is greater than a preset value.
针对根据所述压力值增大所述初始驱动参数的情况下,判断所述音量差是否大于预设值。该预设值可以根据实际使用情况而设定,如果音量差大于该预设值,表示在压力值未作用于屏幕时的初始音量与压力值作用之后经过调整驱动参数之后输出的音量值差值较大,则表示该调整未减小压力值对屏幕振动所造成的影响,例如,该预设值可以是一个比较小的数,范围可以是0-10分贝,例如可以是3分贝,如果音量差小于该预设值,表示音量差较小,即经过对驱动参数的调整,屏幕振动所发出的声音与初始音量接近。则如果大于预设值,则判定满足预设标准,则执行S508。In the case of increasing the initial driving parameter according to the pressure value, it is determined whether the volume difference is greater than a preset value. The preset value can be set according to the actual usage. If the volume difference is greater than the preset value, it means the difference between the initial volume when the pressure value does not act on the screen and the output volume value after adjusting the drive parameters after the pressure value acts on the screen. If it is larger, it means that the adjustment does not reduce the influence of the pressure value on the screen vibration. For example, the preset value can be a relatively small number, and the range can be 0-10 decibels, for example, it can be 3 decibels. If the volume If the difference is smaller than the preset value, it means that the volume difference is small, that is, after adjusting the driving parameters, the sound emitted by the screen vibration is close to the initial volume. Then, if it is greater than the preset value, it is determined that the preset standard is met, and S508 is executed.
S508:控制所述激励器停止驱动所述屏幕振动发声。S508: Control the exciter to stop driving the screen to vibrate and sound.
则如果经过对驱动参数的增大之后,驱动屏幕振动所发出的声音的音量与初始音量相差甚远,则表示相比在压力作用在屏幕上时,初始音量被降低的幅度,通过对驱动参数的增大,并没有将屏幕振动的幅度提高或者所提高的幅度较低,则可能是作用在屏幕上的物体较重或者不能发生弹性形变,也就是不是用户的手指作用在屏幕上,则此时将屏幕的振动停止,能够保护屏幕,避免屏幕因振动和外力的作用而损坏。Then, if the volume of the sound produced by the vibration of the driving screen is far from the initial volume after increasing the driving parameters, it means that the initial volume is reduced compared to when the pressure acts on the screen. The increase of the screen vibration does not increase the amplitude of the screen vibration or the amplitude of the increase is low, it may be that the object acting on the screen is heavy or cannot be elastically deformed, that is, the user's finger is not acting on the screen, then this Stop the vibration of the screen at any time, which can protect the screen and avoid damage to the screen due to vibration and external force.
则此时,还可以发出提醒信息,以提醒用户将作用于所述屏幕的所述压力值消除。具体地,提醒信息可以是语音提示,例如,“请将屏幕上的重物拿开”等。At this time, reminder information may also be issued to remind the user to eliminate the pressure value acting on the screen. Specifically, the reminder information may be a voice prompt, for example, "Please remove the heavy objects on the screen" and the like.
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。It should be noted that, for parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
请参阅图6,该方法用于在电子装置的屏幕振动发声的时候,基于按压在屏幕上的压力值而调整屏幕的振动,以改善屏幕振动发声效果。具体地,该方法包括:S601至S606。Referring to FIG. 6 , the method is used to adjust the vibration of the screen based on the pressure value pressed on the screen when the screen of the electronic device vibrates and sounds, so as to improve the sound effect of the screen vibration. Specifically, the method includes: S601 to S606.
S601:当所述电子装置处于屏幕振动发声状态下,获取当前的屏幕振动区域以及所述电子装置的当前发声音量,作为初始音量。S601: When the electronic device is in the state of screen vibration and sound, obtain the current screen vibration area and the current sound volume of the electronic device as the initial volume.
当确定电子装置的屏幕正在振动发声的时候,确定当前的屏幕振动区域,具体地,电子装置包括多个激励器,每个激励器对应屏幕的不同区域,由此,每个激励器能够驱动所对应的屏幕的区域振动发声,并且不同的激励器所驱动的区域不同,在事先确定每个激励器所对应的屏幕的区域,如图1所示,图1中所示的电子装置中,设置有6个激励器,而每个激励器对应一个区域,如顶部2个,底部2个,中部2个,且左右分居。When it is determined that the screen of the electronic device is vibrating and producing sound, the current screen vibration area is determined. Specifically, the electronic device includes a plurality of exciters, and each exciter corresponds to a different area of the screen, so that each exciter can drive all the exciters. The corresponding area of the screen vibrates and sounds, and different exciters drive different areas. The area of the screen corresponding to each exciter is determined in advance, as shown in Figure 1. In the electronic device shown in Figure 1, set There are 6 exciters, and each exciter corresponds to an area, such as 2 at the top, 2 at the bottom, and 2 at the middle, and are separated from left to right.
则确定当前正在驱动屏幕发声的激励器,就能够确定该激励器所对应的区域,即屏幕振动区域。Then, by determining the exciter that is currently driving the screen to sound, the area corresponding to the exciter, that is, the screen vibration area, can be determined.
S602:确定所述初始音量对应的初始驱动参数。S602: Determine initial driving parameters corresponding to the initial volume.
S603:检测所述屏幕接收到的压力值时,获取所述压力值对应的触控区域。S603: When detecting the pressure value received by the screen, obtain a touch area corresponding to the pressure value.
所述屏幕包括触控屏,而触控屏上分布有多个压力传感器,而每个压力传感器都对应一个位置,当用户按压屏幕的一个区域的时候,该区域内的压力传感器能够检测到作用于屏幕上的压力,则确定了检测到压力的压力传感器,就能够确定该压力传感器所对应的位置,由此能够获取所触控的触控区域。The screen includes a touch screen, and a plurality of pressure sensors are distributed on the touch screen, and each pressure sensor corresponds to a position. When the user presses an area of the screen, the pressure sensor in the area can detect the effect. According to the pressure on the screen, the pressure sensor that has detected the pressure can be determined, and the position corresponding to the pressure sensor can be determined, so that the touched touch area can be obtained.
S604:判断所述触控区域与所述屏幕振动区域的位置是否匹配。S604: Determine whether the positions of the touch area and the screen vibration area match.
具体地,确定该触控区域与屏幕振动区域是否有交集,如果有,则表示用户所按压的区域正是屏幕振动的区域,则判定触控区域与所述屏幕振动区域的位置匹配,否则,判定不匹配。Specifically, it is determined whether there is an intersection between the touch area and the screen vibration area. If so, it means that the area pressed by the user is exactly the area where the screen vibrates, and it is determined that the touch area matches the position of the screen vibration area. Otherwise, Judgment does not match.
进一步地,获取触控区域与屏幕振动区域之间相交的区域,具体地,确定屏幕振动区域的第一区域范围,以及确定触控区域的第二区域范围,由此能够确定第一区域范围和第二区域范围相交的区域,然后确定该相交的区域的范围是否满足预设区域大小,其中,该预设区域大小可以是第一区域范围的一半面积,则如果该相交的区域的范围满足预设区域大小,则判定触控区域与所述屏幕振动区域的位置匹配,否则,判定不匹配。Further, the intersecting area between the touch area and the screen vibration area is obtained, specifically, the first area range of the screen vibration area is determined, and the second area range of the touch area is determined, thereby the first area range and the screen vibration area can be determined. The second area is the intersecting area, and then it is determined whether the area of the intersecting area satisfies the preset area size, where the preset area size may be half the area of the first area, and if the area of the intersecting area satisfies the preset area size If the area size is set, it is determined that the touch area matches the position of the screen vibration area, otherwise, it is determined that they do not match.
由此,如果用户按压的区域并非屏幕的振动区域,则表示在一些实施例中,可以忽略用户按压的压力值对屏幕振动的影响,则不需要执行S605。Therefore, if the area pressed by the user is not the vibration area of the screen, it means that in some embodiments, the influence of the pressure value pressed by the user on the vibration of the screen can be ignored, and S605 does not need to be performed.
另外,考虑到虽然触控区域与屏幕振动区域不相交,但是,如果触控区域与屏幕振动区域过近的话,也可能会干扰屏幕的振动,则如果触控区域与屏幕振动区域是否有交集,如果有,则表示用户所按压的区域正是屏幕振动的区域,则判定触控区域与所述屏幕振动区域的位置匹配,否则,获取触控区域与屏幕振动区域之间的距离,则该距离用屏幕的像素个数来衡量,具体地,第一区域范围和第二区域范围均可以由像素来表示,则在第一区域内确定第一位置标记点,并确定该位置标记点的像素坐标,同理,在第二区域内确定第二位置标记点,并确定该位置标记点的像素坐标。作为一种实施方式,第一位置标记点可以是第一区域范围的中心点,而第二位置标记点可以是第二区域范围的中心点,当然,也可以是区域内的任一点。根据该第一位置标记点的像素坐标和第二位置标记点的像素坐标,确定二者之间的距离。In addition, considering that although the touch area and the screen vibration area do not intersect, if the touch area and the screen vibration area are too close, the vibration of the screen may also be disturbed. If there is an intersection between the touch area and the screen vibration area, If there is, it means that the area pressed by the user is the area where the screen vibrates, then it is determined that the touch area matches the position of the screen vibration area, otherwise, the distance between the touch area and the screen vibration area is obtained, then the distance Measured by the number of pixels on the screen, specifically, the first area range and the second area range can be represented by pixels, then the first position marker is determined in the first area, and the pixel coordinates of the position marker are determined. , in the same way, determine the second position marker in the second area, and determine the pixel coordinates of the position marker. As an implementation manner, the first position marker point may be the center point of the first area, and the second position marker point may be the center point of the second area, and of course, may be any point in the area. The distance between the two is determined according to the pixel coordinates of the first position marker and the pixel coordinates of the second position marker.
然后,再判读该距离是否小于预设距离值,如果小于,则判定触控区域与所述屏幕振动区域的位置匹配,如果大于或等于,则判定触控区域与所述屏幕振动区域的位置不匹配。其中,预设距离值可以是预先设定的一个经验值,用于表示在距离小于该值的时候,依然会影响屏幕振动区域的振动。Then, it is judged whether the distance is smaller than the preset distance value. If it is smaller, it is determined that the position of the touch area and the screen vibration area match, and if it is greater than or equal to, it is determined that the position of the touch area and the screen vibration area do not match. match. The preset distance value may be a preset empirical value, which is used to indicate that when the distance is smaller than the value, the vibration of the screen vibration area will still be affected.
另外,判断所述触控区域与所述屏幕振动区域的位置是否匹配的具体实施方式还可以是,直接执行获取触控区域与屏幕振动区域之间的距离,判读该距离是否小于预设距离值,如果小于,则判定触控区域与所述屏幕振动区域的位置匹配,如果大于或等于,则判定触控区域与所述屏幕振动区域的位置不匹配。In addition, the specific implementation manner of judging whether the positions of the touch area and the screen vibration area match may also be: directly obtaining the distance between the touch area and the screen vibration area, and judging whether the distance is less than a preset distance value , if it is less than, it is determined that the position of the touch area and the screen vibration area match, if it is greater than or equal to, it is determined that the position of the touch area and the screen vibration area do not match.
S605:根据所述压力值调整所述初始驱动参数。S605: Adjust the initial driving parameter according to the pressure value.
S606:控制所述激励器根据调整后的驱动参数驱动所述屏幕振动发声。S606: Control the exciter to drive the screen to vibrate and emit sound according to the adjusted driving parameters.
需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。It should be noted that, for parts not described in detail in the above steps, reference may be made to the foregoing embodiments, and details are not described herein again.
请参阅图7,示出了一种屏幕发声装置700,该装置用于在电子装置的屏幕振动发声的时候,基于按压在屏幕上的压力值而调整屏幕的振动,以改善屏幕振动发声效果。具体地,该装置包括:获取单元701、确定单元702、调整单元703和驱动单元704。Referring to FIG. 7 , a
获取单元701,用于当所述电子装置处于屏幕振动发声状态下,获取所述电子装置的当前发声音量,作为初始音量。The obtaining
确定单元702,用于确定所述初始音量对应的初始驱动参数。The determining
调整单元703,用于检测所述屏幕接收到的压力值,根据所述压力值调整所述初始驱动参数。An
驱动单元704,用于控制所述激励器根据调整后的驱动参数驱动所述屏幕振动发声。A driving
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
请参阅图8,示出了本申请实施例提供的电子装置,包括:包括屏幕120、多个用于驱动所述屏幕发声的激励器131,所述多个激励器131对应所述屏幕120的不同位置。电子装置还包括:处理器102、检测电路801和驱动电路802。Please refer to FIG. 8 , which shows an electronic device provided by an embodiment of the present application, including: a
处理器102,用于当所述电子装置处于屏幕120振动发声的模式下,获取所述电子装置的当前发声音量,作为初始音量,确定所述初始音量对应的初始驱动参数,其中,所述激励器131根据所述初始驱动参数输出驱动力,以驱动所述屏幕120振动发声。The
检测电路801,用于检测所述屏幕120接收到的压力值,并发送至所述处理器。The detection circuit 801 is configured to detect the pressure value received by the
所述处理器102还用于根据所述压力值调整所述初始驱动参数。The
驱动电路802,用于控制所述激励器131根据调整后的驱动参数驱动所述屏幕120振动发声。The driving circuit 802 is configured to control the
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
请参阅图9,示出了本申请实施例提供的电子装置100,包括:存储器104和处理器102,所述存储器104与所述处理器102耦合;所述存储器104存储指令,当所述指令由所述处理器102执行时以使所述处理器102执行上述方法。Please refer to FIG. 9 , which shows an
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
请参阅图1和2,基于上述的方法和装置,本申请实施例还提供一种电子装置100,示例性的,电子装置100可以为移动或便携式并执行无线通信的各种类型的计算机系统设备中的任何一种(图1和2中只示例性的示出了一种形态)。具体的,电子装置100可以为移动电话或智能电话(例如,基于iPhone TM,基于Android TM的电话),便携式游戏设备(例如Nintendo DS TM,PlayStation Portable TM,Gameboy Advance TM,iPhone TM)、膝上型电脑、PDA、便携式互联网设备、音乐播放器以及数据存储设备,其他手持设备以及诸如手表、耳机、吊坠、耳机等,电子装置100还可以为其他的可穿戴设备(例如,诸如电子眼镜、电子衣服、电子手镯、电子项链、电子纹身、电子设备或智能手表的头戴式设备(HMD))。Please refer to FIGS. 1 and 2. Based on the above method and apparatus, the embodiments of the present application further provide an
电子装置100还可以是多个电子设备中的任何一个,多个电子设备包括但不限于蜂窝电话、智能电话、其他无线通信设备、个人数字助理、音频播放器、其他媒体播放器、音乐记录器、录像机、照相机、其他媒体记录器、收音机、医疗设备、车辆运输仪器、计算器、可编程遥控器、寻呼机、膝上型计算机、台式计算机、打印机、上网本电脑、个人数字助理(PDA)、便携式多媒体播放器(PMP)、运动图像专家组(MPEG-1或MPEG-2)音频层3(MP3)播放器,便携式医疗设备以及数码相机及其组合。The
在一些情况下,电子装置100可以执行多种功能(例如,播放音乐,显示视频,存储图片以及接收和发送电话呼叫)。如果需要,电子装置100可以是诸如蜂窝电话、媒体播放器、其他手持设备、腕表设备、吊坠设备、听筒设备或其他紧凑型便携式设备的便携式设备。In some cases, the
上述电子装置100其包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的主显示屏120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述主显示屏120通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控操作的电路等。所述显示面板111可以为一个液晶显示面板(Liquid Crystal Display,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。The aforementioned
请同时参阅图10,在实际的应用场景中,所述电子装置100可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,图10所示的结构仅为示意,其并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图10中所示更多或者更少的组件,或者具有与图1和2所示不同的配置。Please refer to FIG. 10 at the same time. In an actual application scenario, the
本领域普通技术人员可以理解,相对于所述处理器102来说,所有其他的组件均属于外设,所述处理器102与这些外设之间通过多个外设接口124相耦合。所述外设接口124可基于以下标准实现:通用异步接收/发送装置(Universal Asynchronous Receiver/Transmitter,UART)、通用输入/输出(General Purpose Input Output,GPIO)、串行外设接口(Serial Peripheral Interface,SPI)、内部集成电路(Inter-Integrated Circuit,I2C),但不并限于上述标准。在一些实例中,所述外设接口124可仅包括总线;在另一些实例中,所述外设接口124还可包括其他元件,如一个或者多个控制器,例如用于连接所述显示面板111的显示控制器或者用于连接存储器的存储控制器。此外,这些控制器还可以从所述外设接口124中脱离出来,而集成于所述处理器102内或者相应的外设内。Those skilled in the art can understand that, with respect to the
所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述电子本体部10或所述主显示屏120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
所述RF模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述RF模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述RF模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication,GSM)、增强型移动通信技术(Enhanced Data GSM Environment,EDGE),宽带码分多址技术(wideband codedivision multiple access,W-CDMA),码分多址技术(Code division access,CDMA)、时分多址技术(time division multiple access,TDMA),无线保真技术(Wireless,Fidelity,WiFi)(如美国电气和电子工程师协会标准IEEE 802.10A,IEEE 802.11b,IEEE802.11g和/或IEEE 802.11n)、网络电话(Voice over internet protocal,VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access,Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF module 106 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. . The RF module 106 can communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices through a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-mentioned wireless network can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code Wideband codedivision multiple access (W-CDMA), code division multiple access (CDMA), time division multiple access (TDMA), wireless fidelity technology (Wireless, Fidelity, WiFi) (such as IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Voice over internet protocal (VoIP), Worldwide Interoperability for Microwave Access, Wi-Max), other protocols for mail, instant messaging, and short messaging, and any other suitable communication protocols, even those that have not yet been developed.
音频电路110、声音插孔103、麦克风105共同提供用户与所述电子本体部10或所述主显示屏120之间的音频接口。具体地,所述音频电路110从所述处理器102处接收声音数据,将声音数据转换为电信号,将电信号传输至激励器131,则音频电路110可以作为上述的驱动电路使用。该电信号作为激励器131的驱动信号,则所述激励器131根据电信号控制振动部件的振动,从而将声音数据转换为人耳能听到的声波。所述音频电路110还从所述麦克风105处接收电信号,将电信号转换为声音数据,并将声音数据传输给所述处理器102以进行进一步的处理。音频数据可以从所述存储器104处或者通过所述RF模块106获取。此外,音频数据也可以存储至所述存储器104中或者通过所述RF模块106进行发送。The audio circuit 110 , the audio jack 103 and the microphone 105 together provide an audio interface between the user and the
所述传感器114设置在所述电子本体部10内或所述主显示屏120内,所述传感器114的实例包括但并不限于:光传感器、压力传感器、加速度传感器114F、接近传感器114J以及其他传感器。The sensor 114 is disposed in the
具体地,所述光传感器可包括光线传感器。光线传感器能够根据移动终端所处环境的光线来调节屏幕的亮度。例如,在光线充足的地方屏幕会很亮,相反,如果在暗处,屏幕较暗(与屏幕亮度的设置也有关系),这样既保护了眼睛又节省了电量。Specifically, the light sensor may include a light sensor. The light sensor can adjust the brightness of the screen according to the light in the environment where the mobile terminal is located. For example, the screen will be bright in a well-lit place, and conversely, if it is in a dark place, the screen will be darker (also related to the screen brightness setting), which protects the eyes and saves power.
其中,压力传感器可以检测由按压在电子装置100产生的压力的传感器。即,压力传感器检测由用户和移动终端之间的接触或按压产生的压力,例如由用户的耳朵与移动终端之间的接触或按压产生的压力。因此,压力传感器可以用来确定在用户与电子装置100之间是否发生了接触或者按压,以及压力的大小。Among them, the pressure sensor can detect the pressure generated by pressing on the
请再次参阅图1和2,具体地在图1和2所示的实施例中,所述光线传感器及所述压力传感器邻近所述显示面板111设置。所述光线传感器可在有物体靠近所述主显示屏120时,例如所述电子本体部10移动到耳边时,所述处理器102关闭显示输出。Please refer to FIGS. 1 and 2 again. Specifically, in the embodiment shown in FIGS. 1 and 2 , the light sensor and the pressure sensor are disposed adjacent to the display panel 111 . The light sensor can turn off the display output of the
作为运动传感器的一种,加速度传感器114F可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别所述电子装置100姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,所述电子本体部10还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述,As a kind of motion sensor, the acceleration sensor 114F can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the posture of the electronic device 100 (such as horizontal and vertical orientation). screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the
本实施例中,所述输入模块118可包括设置在所述主显示屏120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏109可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸屏109的触摸检测功能。In this embodiment, the input module 118 may include the
所述主显示屏120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,所述触摸屏109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。The
所述电源模块122用于向所述处理器102以及其他各组件提供电力供应。具体地,所述电源模块122可包括电源管理系统、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其他任意与所述电子本体部10或所述主显示屏120内电力的生成、管理及分布相关的组件。The power module 122 is used to provide power supply to the
所述电子装置100还包括定位器119,所述定位器119用于确定所述电子装置100所处的实际位置。本实施例中,所述定位器119采用定位服务来实现所述电子装置100的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述电子装置100的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。The
综上所述,本申请实施例提供的发声控制方法、装置、电子装置及计算机可读介质,当所述电子装置处于屏幕振动发声状态下,确定当前发声音量的初始音量,并确定该初始音量对应的驱动参数。在检测到作用于所述屏幕的压力值时,根据所述压力值调整所述驱动参数,控制所述激励器根据调整后的所述驱动参数驱动所述屏幕振动发声。因此,不仅可以通过屏幕或后盖的振动方式来发声,可以避免在电子装置上设置出音孔,还能够在电子装置的屏幕振动发声的时候,根据用户对屏幕的按压就是调整用户驱动屏幕振动的驱动参数,改善屏幕振动发声效果。To sum up, the sound production control method, device, electronic device, and computer-readable medium provided by the embodiments of the present application, when the electronic device is in the state of screen vibration and sound production, determine the initial volume of the current sound volume, and determine the initial volume corresponding drive parameters. When the pressure value acting on the screen is detected, the driving parameter is adjusted according to the pressure value, and the exciter is controlled to drive the screen to vibrate and emit sound according to the adjusted driving parameter. Therefore, not only can sound be produced by the vibration of the screen or the back cover, it can avoid setting a sound hole on the electronic device, but also when the screen of the electronic device vibrates and sounds, according to the user's pressing on the screen, the user can drive the screen to vibrate. to improve the sound effect of screen vibration.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of this application 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 or a combination of the following techniques known in the art: Discrete 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 application 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 application have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations to the present application. Embodiments are subject to variations, modifications, substitutions and variations.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810817948.4A CN109144462B (en) | 2018-07-23 | 2018-07-23 | Sound production control method and device, electronic device and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810817948.4A CN109144462B (en) | 2018-07-23 | 2018-07-23 | Sound production control method and device, electronic device and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109144462A CN109144462A (en) | 2019-01-04 |
CN109144462B true CN109144462B (en) | 2020-01-14 |
Family
ID=64798996
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810817948.4A Expired - Fee Related CN109144462B (en) | 2018-07-23 | 2018-07-23 | Sound production control method and device, electronic device and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109144462B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112286484A (en) * | 2020-11-12 | 2021-01-29 | Oppo广东移动通信有限公司 | Screen sound control method, device and electronic device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030086338A1 (en) * | 2001-11-08 | 2003-05-08 | Sastry Srikonda V. | Wireless web based drug compliance system |
CN103294183B (en) * | 2012-03-05 | 2017-03-01 | 联想(北京)有限公司 | Terminal unit and its method that pressure is fed back |
KR102413059B1 (en) * | 2012-05-11 | 2022-06-23 | 가부시키가이샤 한도오따이 에네루기 켄큐쇼 | Electronic device, storage medium, program, and displaying method |
CN103778909B (en) * | 2014-01-10 | 2017-03-01 | 瑞声科技(南京)有限公司 | Screen sonification system and its control method |
CN107085497A (en) * | 2016-02-15 | 2017-08-22 | 中兴通讯股份有限公司 | Method for controlling volume and device |
CN106126181A (en) * | 2016-06-28 | 2016-11-16 | 宇龙计算机通信科技(深圳)有限公司 | A kind of screen sounding controller, method and terminal |
-
2018
- 2018-07-23 CN CN201810817948.4A patent/CN109144462B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN109144462A (en) | 2019-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683761B (en) | Sound production control method and device, electronic device and computer readable medium | |
CN108646971B (en) | Screen sound control method, device and electronic device | |
CN109032558B (en) | Voice control method, device, electronic device and computer readable medium | |
CN108881568B (en) | Method, device, electronic device and storage medium for sound from display screen | |
CN109062535B (en) | Voice control method, device, electronic device and computer readable medium | |
CN108810198B (en) | Voice control method, device, electronic device and computer readable medium | |
CN109032556B (en) | Voice control method, device, electronic device, and storage medium | |
CN109189362B (en) | Sound production control method and device, electronic equipment and storage medium | |
CN108712571A (en) | Method and device for sounding display screen, electronic device and storage medium | |
CN109144460B (en) | Voice control method, device, electronic device, and storage medium | |
CN108958632B (en) | Sound production control method and device, electronic equipment and storage medium | |
CN108833638A (en) | Sound producing method, device, electronic device and storage medium | |
CN109086023B (en) | Sound production control method and device, electronic equipment and storage medium | |
CN109085985B (en) | Sound production control method, sound production control device, electronic device, and storage medium | |
CN109189360B (en) | Screen sounding control method and device and electronic device | |
CN108762711A (en) | Method, device, electronic device and storage medium for screen sound generation | |
CN108769327A (en) | Method and device for sounding display screen, electronic device and storage medium | |
CN108958697A (en) | Screen sound control method, device and electronic device | |
CN108900688B (en) | Voice control method, device, electronic device and computer readable medium | |
CN108712706B (en) | Sound production method, sound production device, electronic device and storage medium | |
CN109240413B (en) | Screen sounding method and device, electronic device and storage medium | |
CN109086025B (en) | Sounding control method, device, electronic device and computer-readable medium | |
CN108958631B (en) | Screen sound control method, device and electronic device | |
CN109144459B (en) | Voice control method, device, electronic device, and storage medium | |
CN110505335B (en) | Sound production control method and device, electronic device and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200114 |
|
CF01 | Termination of patent right due to non-payment of annual fee |