[go: up one dir, main page]

CN108810198B - Voice control method, device, electronic device and computer readable medium - Google Patents

Voice control method, device, electronic device and computer readable medium Download PDF

Info

Publication number
CN108810198B
CN108810198B CN201810519421.3A CN201810519421A CN108810198B CN 108810198 B CN108810198 B CN 108810198B CN 201810519421 A CN201810519421 A CN 201810519421A CN 108810198 B CN108810198 B CN 108810198B
Authority
CN
China
Prior art keywords
vibration
sound
frequency
screen
electronic device
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
Application number
CN201810519421.3A
Other languages
Chinese (zh)
Other versions
CN108810198A (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810519421.3A priority Critical patent/CN108810198B/en
Publication of CN108810198A publication Critical patent/CN108810198A/en
Application granted granted Critical
Publication of CN108810198B publication Critical patent/CN108810198B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/03Constructional features of telephone transmitters or receivers, e.g. telephone hand-sets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/22Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only 

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Telephone Set Structure (AREA)

Abstract

The embodiment of the application provides a sound production control method and device, an electronic device and a computer readable medium, and belongs to the technical field of electronic devices. The method comprises the following steps: acquiring environmental noise of the electronic device in the current environment based on the acquired sounding request; acquiring the sound intensity of the environmental noise; setting vibration parameters of the vibration component according to the sound intensity; and controlling the vibration component to vibrate according to the set vibration parameters. The electronic device can not only sound through the vibration mode of the screen or the shell, but also avoid the sound holes arranged on the electronic device, and can adjust the vibration of the vibration component according to the sound intensity of the environmental noise by considering the influence of the environmental noise on the sound emitted by the electronic device, thereby adjusting the vibration sound.

Description

发声控制方法、装置、电子装置及计算机可读介质Voice control method, device, electronic device and computer readable medium

技术领域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 production control method, which is applied to an electronic device. The electronic device includes a vibrating component capable of vibrating and producing sound, and the vibration component is at least one of a screen or a housing of the electronic device. . The method includes: collecting the environmental noise in the current environment of the electronic device based on the acquired voice request; acquiring the sound intensity of the environmental noise; setting the vibration parameters of the vibration component according to the sound intensity; The vibration parameter controls the vibration of the vibrating component.

第二方面,本申请实施例还提供了一种发声控制装置,应用于电子装置,所述电子装置包括能够振动发声的振动部件,所述振动部件为所述电子装置的屏幕或壳体的至少一个。所述装置包括:采集单元、获取单元、设置单元和发声单元。采集单元,用于基于获取的发声请求,采集所述电子装置的当前环境下的环境噪声。获取单元,用于获取所述环境噪声的声音强度。设置单元,用于根据所述声音强度设置所述振动部件的振动参数。发声单元,用于根据设置后的振动参数控制所述振动部件发出声音。In a second aspect, an embodiment of the present application further provides a sound production control device, which is applied to an electronic device. The electronic device includes a vibrating component capable of vibrating and producing sound, and the vibration component is at least one part of a screen or a casing of the electronic device. One. The device includes: a collection unit, an acquisition unit, a setting unit and a sounding unit. A collection unit, configured to collect environmental noise in the current environment of the electronic device based on the acquired voice request. an acquiring unit, configured to acquire the sound intensity of the environmental noise. A setting unit, configured to set vibration parameters of the vibration component according to the sound intensity. The sound-emitting unit is used to control the vibration component to emit sound according to the set vibration parameters.

第三方面,本申请实施例还提供了一种电子装置,其特征在于,包括能够振动发声的振动部件,所述振动部件为所述电子装置的屏幕或壳体的至少一个;还包括存储器和处理器,所述存储器与所述处理器耦合。所述存储器存储指令,当所述指令由所述处理器执行时以使所述处理器执行以下操作:基于获取的发声请求,采集所述电子装置的当前环境下的环境噪声;获取所述环境噪声的声音强度;根据所述声音强度设置所述振动部件的振动参数;根据设置后的振动参数控制所述振动部件振动。In a third aspect, an embodiment of the present application further provides an electronic device, which is characterized by comprising a vibrating component capable of vibrating and producing sound, the vibrating component being at least one of a screen or a casing of the electronic device; further comprising a memory and a A processor, the memory coupled to the processor. The memory stores instructions that, when executed by the processor, cause the processor to perform the following operations: based on the acquired utterance request, collect environmental noise in the current environment of the electronic device; acquire the environment the sound intensity of the noise; set the vibration parameters of the vibration component according to the sound intensity; control the vibration of the vibration component according to the set vibration parameters.

第四方面,本申请实施例还提供了一种具有处理器可执行的程序代码的计算机可读介质,所述程序代码使所述处理器执行上述方法。In a fourth aspect, an embodiment of the present application further provides a computer-readable medium having program code executable by a processor, where the program code enables the processor to execute the above method.

本申请实施例提供了一种发声控制方法、装置、电子装置及计算机可读介质,在获取到发声请求之后,基于所获取的发声请求,采集电子装置的当前环境下的环境噪声,然后,获取环境噪声的声音强度,根据声音强度控制所述振动部件振动。因此,不仅可以通过屏幕或壳体的振动方式来发声,可以避免在电子装置上设置出音孔,也可以考虑环境噪声对电子装置所发出的声音的影响,而根据环境噪声的声音强度来调整振动部件的振动,从而调整振动发声。Embodiments of the present application provide a sound emission control method, device, electronic device, and computer-readable medium. After acquiring the sound emission request, based on the acquired sound emission request, the environmental noise in the current environment of the electronic device is collected, and then, the The sound intensity of the environmental noise, and the vibration of the vibration part is controlled according to the sound intensity. Therefore, not only can sound be produced by the vibration of the screen or the casing, it is possible to avoid setting sound holes on the electronic device, but also the influence of environmental noise on the sound emitted by the electronic device can be considered, and the sound intensity of the environmental noise can be adjusted according to the sound intensity. The vibration of the vibrating part, thereby adjusting the vibration to sound.

本申请实施例的其他特征和优点将在随后的说明书阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请实施例而了解。本申请实施例的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。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 the sound production control method provided by the first embodiment of the present application;

图4示出了本申请第二实施例提供的发声控制方法的方法流程图;FIG. 4 shows a method flow chart of the sound production control method provided by the second embodiment of the present application;

图5示出了本申请实施例提供的通话界面的示意图;FIG. 5 shows a schematic diagram of a call interface provided by an embodiment of the present application;

图6示出了本申请第三实施例提供的发声控制方法的方法流程图;Fig. 6 shows the method flow chart of the sound production control method provided by the third embodiment of the present application;

图7示出了本申请第四实施例提供的发声控制方法的方法流程图;FIG. 7 shows a method flow chart of the sound production control method provided by the fourth embodiment of the present application;

图8示出了本申请实施例提供的振动区域的示意图;FIG. 8 shows a schematic diagram of a vibration area provided by an embodiment of the present application;

图9示出了本申请实施例提供的发声控制装置的模块框图;FIG. 9 shows a block diagram of a module of a sound emission control device provided by an 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 the upper forehead area, the middle screen area and the 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, please refer to FIGS. 1 and 2, which show an electronic device 100 provided by an embodiment of the present application. 1 is a front view of the electronic device, and FIG. 2 is a side view of the electronic device.

电子装置100包括电子本体部10,所述电子本体部10包括壳体12和设置在所述壳体12的屏幕120,壳体12包括前面板125、后盖127以及边框126,边框126用于连接前面板125和后盖127,屏幕120设置在前面板 125上。The electronic device 100 includes an electronic body portion 10, the electronic body portion 10 includes a casing 12 and a screen 120 disposed on the casing 12, the casing 12 includes a front panel 125, a rear cover 127 and a frame 126, and the frame 126 is used for The front panel 125 and the rear cover 127 are connected, and the screen 120 is disposed on the front panel 125 .

电子装置还包括激励器131,该激励器131用于驱动电子装置的振动部件振动,具体地,振动部件为所述电子装置的屏幕120或壳体12的至少一个,也就是说,振动部件可以是屏幕120,也可以是壳体12,还可以是屏幕120和壳体12的组合。作为一种实施方式,当振动部件为壳体12时,振动部件可以是壳体12的后盖。The electronic device further includes an exciter 131, which is used to drive the vibration part of the electronic device to vibrate. Specifically, the vibration part is at least one of the screen 120 or the casing 12 of the electronic device, that is, the vibration part can It is the screen 120 , the casing 12 , or the combination of the screen 120 and the casing 12 . As an embodiment, when the vibration component is the housing 12 , the vibration component may be the back cover of the housing 12 .

于本申请实施例中,所述振动部件可以为屏幕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 may be the screen 120 , and the exciter 131 is connected to the screen 120 for driving the screen 120 to vibrate. Specifically, the exciter 131 is attached below the screen 120, and the exciter 131 may be a piezoelectric driver or a motor. As an embodiment, the exciter 131 is a piezoelectric driver. The piezoelectric driver transmits its own deformation to the screen 120 through the action of torque, so that the screen 120 vibrates and emits sound. The screen 120 includes a touch screen 109 and a display panel 111 . The display panel 111 is located below the touch screen 109 , and the piezoelectric driver is attached below the display panel 111 , that is, the side of the display panel 111 away from the touch screen 109 . Piezoelectric drivers include multilayer piezoelectric ceramic sheets. When a multilayer piezoelectric ceramic sheet expands and contracts with sound, it will drive the screen to bend and deform. Repeatedly, the entire screen forms a bending vibration, so that the screen can push the air and generate sound.

作为一种实施方式,电子装置100包括检测电路和驱动电路,检测电路用于用于基于获取的发声请求,采集所述电子装置的当前环境下的环境噪声,获取所述环境噪声的声音强度,根据所述声音强度设置所述振动部件的振动参数。As an embodiment, the electronic device 100 includes a detection circuit and a drive circuit, and the detection circuit is configured to collect environmental noise in the current environment of the electronic device based on the acquired voice request, and acquire the sound intensity of the environmental noise, Vibration parameters of the vibrating member are set according to the sound intensity.

激励器131与电子装置的驱动电路连接,驱动电路用于根据振动参数输入控制信号值激励器131,以驱动激励器131振动,从而带动振动部件振动。具体地,驱动电路可以是电子装置的处理器,也可以是电子装置内的能够产生驱动电压或电流的集成电路。驱动电路输出高低电平的驱动信号至激励器131,激励器131根据该驱动信号振动,而驱动电路输出的驱动信号的电参数不同,则会导致激励器131的振动参数不同,例如,驱动信号的占空比对应激励器131的振动频率,驱动信号的幅度对应激励器131的振动幅度等。The exciter 131 is connected to the drive circuit of the electronic device, and the drive circuit is used to input a control signal value to the exciter 131 according to the vibration parameter to drive the exciter 131 to vibrate, thereby driving the vibrating component to vibrate. Specifically, the driving circuit may be a processor of an electronic device, or may be an integrated circuit capable of generating a driving voltage or current in the electronic device. The drive circuit outputs high and low level drive signals to the exciter 131, and the exciter 131 vibrates according to the drive signal, and the electrical parameters of the drive signals output by the drive circuit are different, which will cause the vibration parameters of the exciter 131 to be different, for example, the drive signal The duty cycle corresponds to the vibration frequency of the exciter 131 , and the amplitude of the driving signal corresponds to the vibration amplitude of the exciter 131 .

在本申请实施例中,多个激励器131可以均匀分布于屏幕120,以使屏幕120均分为多个单独进行发声的区域。例如,激励器的个数为4个,则屏幕可以沿竖直方向以及水平方向的中心线均分为4块方形区域,4个激励器设置于4块方形区域下方,4个激励器与4块方形区域一一对应。当然,激励器的个数在本申请实施例中并不作为限定。In this embodiment of the present application, a plurality of exciters 131 may be evenly distributed on the screen 120, so that the screen 120 is evenly divided into a plurality of areas where sound is produced independently. For example, if the number of exciters is 4, the screen can be divided into 4 square areas along the vertical and horizontal center lines. The 4 exciters are arranged below the 4 square areas, and the 4 The block square areas correspond one-to-one. Of course, the number of exciters is not limited in the embodiments of the present application.

由于屏幕在振动发声的时候,周围环境存在环境噪声的干扰,而导致用户所听到的屏幕振动所发出的声音不够清晰,因此,为了解决该技术问题,本申请实施例提供了一种发声控制方法,请参阅图3所示,该方法用于降低环境噪声对屏幕发声的影响,具体地,该方法包括:S301至S304。When the screen vibrates and emits sound, the surrounding environment is disturbed by environmental noise, so that the sound heard by the user from the screen vibration is not clear enough. Therefore, in order to solve this technical problem, the embodiment of the present application provides a sound control For the method, please refer to FIG. 3 . The method is used to reduce the influence of ambient noise on the sound of the screen. Specifically, the method includes: S301 to S304 .

S301:基于获取的发声请求,采集所述电子装置的当前环境下的环境噪声。S301: Collect environmental noise in the current environment of the electronic device based on the acquired voice request.

其中,发声请求为用户指示电子装置,需要控制屏幕振动而发声的信息。作为一种实施方式,发声请求可以是提醒信息、也可以是语音播放请求。Among them, the sound request is the information that the user instructs the electronic device 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, the method of the present application may be executed after the reminder information is obtained, but before the sound is emitted, and then, after the vibration parameters are obtained, the screen is controlled to vibrate and sound, so as to emit a sound. Sounds for reminders, for example, ringtones for incoming calls.

作为另一种实施方式,发声请求可以是在电子装置发声的过程中,每次播放语音的请求。则本申请实施例的方法,用于在电子装置发声的过程中,采集环境噪声而调整振动部件的振动,进而来调整发声。As another implementation manner, the voice request may be a request to play voice every time during the process of the electronic device making 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 sound production of the electronic device, and then adjust the sound production.

而电子装置设置有声音采集装置,该声音采集装置可以是设置在电子装置上的麦克风,用于采集当前环境下的环境噪声,即将环境噪声的声音信号转换为语音信号。当然,声音采集装置还可以是振动部件本身,如果振动部件包括壳体和屏幕,则屏幕用于振动发声,即由激励器来控制振动从而发出声音,而壳体可用于采集周围的声音,于本申请实施例中,发出声音和采集声音均可以由屏幕完成,则在屏幕振动发声的时候,不执行声音采集的操作,避免相互干扰。The electronic device is provided with a sound collection device, which may be a microphone provided on the electronic device, and is used to collect environmental noise in the current environment, that is, to convert the sound signal of the environmental noise into a voice signal. Of course, the sound collection device can also be the vibration component itself. If the vibration component includes a casing and a screen, the screen is used to vibrate and produce sound, that is, the vibration is controlled by the exciter to produce sound, and the casing can be used to collect surrounding sounds. In the embodiment of the present application, both sound generation and sound collection can be completed by the screen, and when the screen vibrates and sounds, the sound collection operation is not performed to avoid mutual interference.

则振动部件,例如,屏幕能够采集到声音,原理类似于麦克风。屏幕的材质可以振动,则如果当前环境噪声的声波引起气压变化时,屏幕会随着气压变化为弯曲,而在屏幕的底面设置一个背板,该背板作为电容的一个电机,而屏幕作为电容的另一个电极,由于屏幕的振动,会改变屏幕与背板之间的电容大小,由此就能够将该电容的变化转换为电信号,从而对声音进行采集。作为一种实施方式,可以将屏幕的某个区域设置成柔性材质的屏幕,且厚度足够小,更加容易因为外界声波的影响而振动。Then the vibrating parts, for example, the screen can pick up the sound, the principle is similar to the microphone. The material of the screen can vibrate. If the sound wave of the current ambient noise causes the air pressure to change, the screen will bend as the air pressure changes, and a backplane is set on the bottom of the screen. The backplane acts as a motor of the capacitor, and the screen acts as a capacitor. Due to the vibration of the screen, the other electrode of the screen will change the capacitance between the screen and the backplane, so that the change of the capacitance can be converted into an electrical signal, so as to collect the sound. As an implementation manner, a certain area of the screen can be set as a screen made of flexible material, and the thickness is small enough to be more easily vibrated due to the influence of external sound waves.

S302:获取所述环境噪声的声音强度。S302: Acquire the sound intensity of the ambient noise.

采集到环境噪声之后,能够获取到环境噪声的声音特征,该声音特征包括环境噪声的频率、声音强度或者振动周期等特性,可以通过频谱分析等数学模型而获得。After the environmental noise is collected, the sound characteristics of the environmental noise can be obtained. The sound characteristics include characteristics such as the frequency, sound intensity, or vibration period of the environmental noise, which can be obtained through mathematical models such as spectrum analysis.

S303:根据所述声音强度设置所述振动部件的振动参数。S303: Set the vibration parameter of the vibration component according to the sound intensity.

在获取到声音强度之后,根据该声音强度调整振动部件的振动参数,以使用户能够在环境噪声中,更加容易听清电子装置发出的声音。After the sound intensity is acquired, the vibration parameters of the vibrating component are adjusted according to the sound intensity, so that the user can more easily hear the sound emitted by the electronic device in the ambient noise.

作为一种实施方式,根据所述声音强度设置所述振动部件的振动参数的具体实施方式是:根据所述声音强度设置所述振动部件的振动幅度,以提高所述振动部件发出的声音的强度。As an embodiment, the specific implementation of setting the vibration parameter of the vibration member according to the sound intensity is: setting the vibration amplitude of the vibration member according to the sound intensity, so as to increase the intensity of the sound emitted by the vibration member .

其中,振动部件的振动幅度能够提高振动部件振动发出的声音的强度,即响度,提高振动幅度能够使声音更加响亮。因此,可以通过提高振动幅度来提高振动部件发出的声音的强度。Wherein, the vibration amplitude of the vibrating member can increase the intensity, ie, the loudness, of the sound emitted by the vibrating member, and increasing the vibration amplitude can make the sound louder. Therefore, the intensity of the sound emitted by the vibrating member can be increased by increasing the vibration amplitude.

具体地,获取电子装置的当前音量,即电子装置预先为发声请求设置的音量,例如,发声请求为通话请求,则通话请求对应有预设音量,该预设音量为用户预先为通话操作而设置的音量,而对应该预设音量有一个预设振动参数,该预设振动参数用于发出该预设音量,该预设振动参数内包括预设振动幅度,则将预设振动作为当前的振动幅度。当然,如果振动部件当前已经在振动,则直接读取激励器内存储的振动参数,以获取当前的振动幅度。Specifically, obtain the current volume of the electronic device, that is, the volume pre-set by the electronic device for the voice request. For example, if the voice request is a call request, the call request corresponds to a preset volume, and the preset volume is preset by the user for the call operation. volume, and there is a preset vibration parameter corresponding to the preset volume, the preset vibration parameter is used to emit the preset volume, and the preset vibration parameter includes a preset vibration amplitude, then the preset vibration is used as the current vibration magnitude. Of course, if the vibration component is currently vibrating, the vibration parameters stored in the exciter are directly read to obtain the current vibration amplitude.

判断环境噪声的声音强度是否大于当前音量,如果大于,则提高电子装置的发出的声音的音量,具体地,获取环境噪声的声音强度与当前音量的音量差值,根据该音量差值确定要增加的振动幅度,具体地,电子装置内预先存储有音量与振动幅度的对应关系,不同的音量对应不同的振动幅度,由此,根据该对应关系就能够获取音量差值对应的要增加的振动幅度,进而,获取要调整的振动幅度,然后将调整后的振动幅度发送至激励器,以使该激励器根据该调整后的振动幅度控制振动部件振动。Determine whether the sound intensity of the environmental noise is greater than the current volume, if it is greater than, then increase the volume of the sound emitted by the electronic device, specifically, obtain the volume difference between the sound intensity of the environmental noise and the current volume, and determine to increase according to the volume difference Specifically, the corresponding relationship between the volume and the vibration amplitude is pre-stored in the electronic device, and different volumes correspond to different vibration amplitudes. Thus, according to the corresponding relationship, the vibration amplitude to be increased corresponding to the volume difference can be obtained. , and further, obtain the vibration amplitude to be adjusted, and then send the adjusted vibration amplitude to the exciter, so that the exciter controls the vibration of the vibration component according to the adjusted vibration amplitude.

S304:根据设置后的振动参数控制所述振动部件振动。S304: Control the vibration of the vibration component according to the set vibration parameters.

电子装置的驱动电路根据该设置后的振动参数调整驱动信号,例如,设置后的振动参数为增大后的振动幅度,则驱动电路提高驱动信号的高电平的电平值,再例如,设置后的振动参数为增大后的振动频率,则驱动电路提高驱动信号的频率。The drive circuit of the electronic device adjusts the drive signal according to the set vibration parameter. For example, if the set vibration parameter is an increased vibration amplitude, the drive circuit increases the level value of the high level of the drive signal. For example, set The latter vibration parameter is the increased vibration frequency, and the drive circuit increases the frequency of the drive signal.

驱动电路将驱动信号发送至激励器,则激励器根据调整后的驱动信号控制振动部件振动,从而能够调整振动部件的振动频率或幅度等参数,从而能够改变所发出的声音的强度或频率等声音特征信息。The drive circuit sends the drive signal to the exciter, and the exciter controls the vibration of the vibrating part according to the adjusted drive signal, so that the parameters such as the vibration frequency or amplitude of the vibrating part can be adjusted, so as to change the intensity or frequency of the emitted sound. characteristic information.

另外,当电子装置在使用耳机通话时,没必要采集当前环境下的环境噪声,因为,在用户使用耳机接收电子装置发出的语音的时候,振动部件是不需要振动的。所以,基于获取的发声请求,采集所述电子装置的当前环境下的环境噪声的实施方式包括:确定所述发声请求是否对应非耳机通话模式;若对应非耳机通话模式,采集所述电子装置的当前环境下的环境噪声。具体地,请参阅图5,该方法用于降低环境噪声对屏幕发声的影响,具体地,该方法包括:S401至S405。In addition, when the electronic device uses the headset to make a call, it is unnecessary to collect ambient noise in the current environment, because the vibration component does not need to vibrate when the user uses the headset to receive the voice from the electronic device. Therefore, based on the acquired voice request, the implementation of collecting the environmental noise in the current environment of the electronic device includes: determining whether the voice request corresponds to a non-headphone call mode; if it corresponds to a non-headphone call mode, collecting the electronic device's Ambient noise in the current environment. Specifically, please refer to FIG. 5 , the method is used to reduce the influence of ambient noise on the screen sound. Specifically, the method includes: S401 to S405.

S401:确定所述发声请求是否对应非耳机通话模式。S401: Determine whether the voice request corresponds to a non-earphone call mode.

则此时发声请求可以是接听通话的请求。Then, the voice request at this time may be a request to answer the call.

当电子装置来电时,即电话铃声或者振动提醒响起时,电子装置能够检测到,并在屏幕上显示来电界面。而用户在来电界面内点击接听键,以实现电子装置当前的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.

而电子装置的通话模式的类型,可以通过检测电子装置的几个状态值来确定。具体地,判断电子装置是否连接有耳机,具体地,可以通过查看电子装置的耳机连接孔的状态来判断,例如,当电子装置的耳机连接孔连接耳机时,返回第一状态值,当连接孔内的耳机被拔出时,返回第二状态值,通过检测第一状态值和第二状态值就能够确定当前电子装置是否连接有耳机。具体地,android系统在耳机插入和拔出的时候都会发送广播,所以,电子装置监听该广播,就能够确定当前电子装置是否连接有耳机。由此,就能够确定电子装置是否处于耳机通话模式。The type of the call mode of the electronic device can be determined by detecting several state values of the electronic device. Specifically, to determine whether the electronic device is connected to an earphone, specifically, it can be determined by checking the state of the earphone connection hole of the electronic device. For example, when the earphone connection hole of the electronic device is connected to the earphone, the first state value is returned, and when the connection hole When the inner earphone is pulled out, the second state value is returned, and whether the current electronic device is connected to the earphone can be determined by detecting the first state value and the second state value. Specifically, the android system will send a broadcast when the headset is inserted and unplugged, so the electronic device can determine whether the current electronic device is connected to the headset by monitoring the broadcast. Thereby, it can be determined whether the electronic device is in the headset talk mode.

而对听筒模式和免提模式的监听,可以通过监听用于在听筒模式和免提模式之间切换的按键的状态值来确定。例如,在图5所示的通话界面,显示有免提按键,用户点击该免提按键,该免提按键被选中,在外观上会有颜色的变化以指示用户该免提按键被按下。则电子装置检测该免提按键是否处于被选中的状态,如果是,则判定电子装置当前处于免提模式,如果不是,则判定电子装置当前处于听筒模式。需要说明是,对听筒模式和免提模式的监听是在电子装置处于非耳机通话模式下进行的。The monitoring of the handset mode and the hands-free mode can be determined by monitoring the state value of the key used for switching between the handset mode and the hands-free mode. For example, in the call interface shown in FIG. 5 , a hands-free button is displayed, the user clicks the hands-free button, the hands-free button is selected, and the color changes in appearance to indicate that the hands-free button is pressed by the user. The electronic device detects whether the hands-free button is in the selected state, and if so, it is determined that the electronic device is currently in the hands-free mode, and if not, it is determined that the electronic device is currently in the handset mode. It should be noted that the monitoring of the handset mode and the hands-free mode is performed when the electronic device is in the non-earphone call mode.

当发声请求对应非耳机通话模式时,即对应听筒模式或免提模式,则电子装置可以通过控制屏幕等振动部件振动发声,以使用户能够听到语音,则执行S402,如果发声请求对应的是耳机通话模式,则结束本次操作。When the voice request corresponds to the non-earphone call mode, that is, corresponds to the handset mode or the hands-free mode, the electronic device can vibrate and emit sounds by controlling vibrating components such as the screen, so that the user can hear the voice, and then execute S402. If the voice request corresponds to The headset call mode ends this operation.

S402:采集所述电子装置的当前环境下的环境噪声。S402: Collect environmental noise in the current environment of the electronic device.

S403:获取所述环境噪声的声音强度。S403: Acquire the sound intensity of the environmental noise.

S404:根据所述声音强度设置所述振动部件的振动参数。S404: Set the vibration parameter of the vibration component according to the sound intensity.

S405:根据设置后的振动参数控制所述振动部件振动。S405: Control the vibration of the vibration component according to the set vibration 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.

另外,考虑到环境噪声的强度很高,仅仅通过提高电子装置发出的声音的强度可能不足以使用户能够清晰的听到电子装置发出的声音,因此,可以调整电子装置发出的声音的频率。具体地,请参阅图6,该方法用于降低环境噪声对屏幕发声的影响,具体地,该方法包括:S601至S605。In addition, considering the high intensity of environmental noise, simply increasing the intensity of the sound emitted by the electronic device may not be enough to enable the user to clearly hear the sound emitted by the electronic device. Therefore, the frequency of the sound emitted by the electronic device can be adjusted. Specifically, referring to FIG. 6 , the method is used to reduce the influence of ambient noise on the screen sound. Specifically, the method includes: S601 to S605.

S601:基于获取的发声请求,采集所述电子装置的当前环境下的环境噪声。S601: Collect environmental noise in the current environment of the electronic device based on the acquired voice request.

S602:获取所述环境噪声的声音强度和声音频率。S602: Acquire the sound intensity and sound frequency of the environmental noise.

在采集到环境噪声的语音信号之后,获取该语音信号的频谱信息,能够获取到环境噪声的声音强度和声音频率。After the voice signal of the environmental noise is collected, the spectrum information of the voice signal is obtained, and the sound intensity and sound frequency of the environmental noise can be obtained.

S603:根据所述声音强度设置所述振动部件的振动幅度。S603: Set the vibration amplitude of the vibration component according to the sound intensity.

S604:根据所述声音频率设置所述振动部件的振动频率。S604: Set the vibration frequency of the vibration component according to the sound frequency.

在获取到声音频率之后,能够获取到环境噪声的声音频率主要分布的频率区域,根据该频率区域设置振动部件的振动频率,以使振动部件所发出的声音的频率的分布区域与环境噪声的声音频率主要分布的频率区域不同,即虽然有适当的交叠处,但是,不完全相同,就有不相同的区域。例如,环境噪声的声音频率主要分布的频率区域为800Hz至1200Hz,则将振动部件的振动频率设置为600Hz至900Hz,则虽然800Hz至900Hz的区域,环境噪声和振动部件所发出的声音的频率有重叠,但是,600Hz至799Hz之间的区域未重叠,由此,可以使振动部件发出的声音的频率与所述环境噪声的声音频率不同。After the sound frequency is obtained, the frequency region where the sound frequency of the environmental noise is mainly distributed can be obtained, and the vibration frequency of the vibrating component is set according to the frequency region, so that the frequency distribution region of the sound emitted by the vibration component is the same as the sound of the environmental noise. The frequency regions of the main frequency distribution are different, that is, although there is an appropriate overlap, but not exactly the same, there are different regions. For example, the frequency region where the sound frequency of environmental noise is mainly distributed is 800Hz to 1200Hz, and the vibration frequency of the vibrating part is set to 600Hz to 900Hz, although the frequency of the sound emitted by the environmental noise and the vibrating part in the region of 800Hz to 900Hz has Overlapping, however, the region between 600 Hz and 799 Hz does not overlap, whereby the frequency of the sound emitted by the vibrating member can be made different from the sound frequency of the ambient noise.

S605:根据设置后的所述振动频率和振动幅度控制所述振动部件发出声音。S605: Control the vibration component to emit sound according to the set vibration frequency and vibration amplitude.

通过控制激励器的振动来控制振动部件所发出的声音,具体地,振动部件的振动频率的控制可以是,驱动电路调整输出的驱动信号的频率,例如,驱动信号为一个方波信号,则控制方波信号的周期就可以控制驱动信号的频率,而激励器在高电平是输出机械能而带动屏幕振动,在低电平时不振动,由此,高低电平交替出现的频率越高,即驱动信号的频率越高,则激励器更加频繁的带动屏幕振动,导致屏幕振动发出的声音的频率越高,反之亦然。The sound emitted by the vibrating part is controlled by controlling the vibration of the exciter. Specifically, the control of the vibration frequency of the vibrating part can be that the drive circuit adjusts the frequency of the output drive signal. For example, if the drive signal is a square wave signal, the control The period of the square wave signal can control the frequency of the driving signal, and the exciter outputs mechanical energy at a high level to drive the screen to vibrate, but does not vibrate at a low level. The higher the frequency of the signal, the more frequently the exciter drives the screen to vibrate, resulting in a higher frequency of the sound produced by the screen vibration, and vice versa.

需要说明的是,上述的电子装置发出的声音的频率分布与环境噪声的频率分布有重叠的区域,则可以设置振动部件的振动频率在非重叠的区域内的振动幅度最高,以使振动部件振动发出的声音主要集中在非重叠的区域内,即振动发出的声音的主瓣位于非重叠的区域内。例如,上述的振动部件的振动频率设置为600Hz至900Hz,环境噪声的声音频率主要分布的频率区域为800Hz至1200Hz中,则振动发出的声音主要集中在600Hz至799Hz 之间。It should be noted that, if the frequency distribution of the sound emitted by the above-mentioned electronic device and the frequency distribution of the environmental noise have an overlapping area, it is possible to set the vibration frequency of the vibrating component to have the highest vibration amplitude in the non-overlapping area, so as to make the vibrating component vibrate. The emitted sound is mainly concentrated in the non-overlapping region, that is, the main lobe of the sound emitted by the vibration is located in the non-overlapping region. For example, the vibration frequency of the above-mentioned vibrating component is set to 600Hz to 900Hz, and the frequency region where the sound frequency of environmental noise is mainly distributed is 800Hz to 1200Hz, and the sound emitted by the vibration is mainly concentrated between 600Hz and 799Hz.

需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。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,该方法用于降低环境噪声对屏幕发声的影响,具体地,该方法包括:S701至S704。Furthermore, the vibration component can also be divided into multiple areas, and each area corresponds to an exciter, so as to control the vibration sound of the electronic device more flexibly. For example, the more vibration areas used for this vibration sound, The higher the volume, specifically, please refer to FIG. 7 , the method is used to reduce the influence of ambient noise on the screen sound. Specifically, the method includes: S701 to S704.

S701:基于获取的发声请求,采集所述电子装置的当前环境下的环境噪声。S701: Collect environmental noise in the current environment of the electronic device based on the acquired voice request.

S702:获取所述环境噪声的声音强度。S702: Acquire the sound intensity of the ambient noise.

S703:根据所述声音强度确定所述振动部件的振动区域。S703: Determine the vibration area of the vibration component according to the sound intensity.

于本申请实施例中,振动部件为屏幕,则将屏幕划分为多个振动区域,如图8所示,虚线圆圈所示的区域位振动区域,其内对应设置一个激励器,则激励器能够控制该振动区域内的屏幕区域振动,而且,通过合理设置激励器与屏幕的接触面积,使得接触面积相对振动区域过小,则可以使相邻的振动区域之间不存在振动干扰或者振动干扰可以忽略不计。In the embodiment of the present application, the vibration component is a screen, then the screen is divided into a plurality of vibration areas, as shown in FIG. Control the vibration of the screen area in the vibration area, and by reasonably setting the contact area between the exciter and the screen so that the contact area is too small relative to the vibration area, there can be no vibration interference or vibration interference between adjacent vibration areas. can be ignored.

每个振动区域对应的振动参数可以相同,也可以不相同,但是,每个振动区域都对应有一个振动阈值,例如,振动幅度的上限或者振动频率的上限,因此,参与到振动发声中的振动区域越多,理论上,所发出的声音最高强度越高、最高频率越高。The vibration parameters corresponding to each vibration area may be the same or different. However, each vibration area corresponds to a vibration threshold, for example, the upper limit of the vibration amplitude or the upper limit of the vibration frequency. The more zones, the theoretically higher maximum intensity and frequency of the sound produced.

作为一种实施方式,可以预先在电子装置内存储声音强度与振动区域的对应关系,具体地,电子装置内存储有环境噪声的声音强度与振动区域的对应关系,一个声音前度对应一个或多个振动区域,例如,强度A对应振动区域Q1,强度B对应振动区域Q1和Q2,也就是说,则环境噪声的声音强度为强度A时,振动区域Q1参与到振动发声中,环境噪声的声音强度为强度B时,振动区域Q1和Q2参与到振动发声中,则参与到振动发声的振动区域即为所设置的振动部件的振动区域。因此,根据环境噪声的声音强度与振动区域的对应关系,就能够确定所采集的所述电子装置的当前环境下的环境噪声的声音强度对应的振动区域。As an embodiment, the corresponding relationship between the sound intensity and the vibration area may be stored in the electronic device in advance. Specifically, the electronic device stores the corresponding relationship between the sound intensity of the environmental noise and the vibration area. One sound front corresponds to one or more For example, the intensity A corresponds to the vibration area Q1, and the intensity B corresponds to the vibration areas Q1 and Q2. That is to say, when the sound intensity of the environmental noise is the intensity A, the vibration area Q1 participates in the vibration sound, and the sound of the environmental noise When the intensity is intensity B, the vibration areas Q1 and Q2 participate in the vibration sound, and the vibration area participating in the vibration sound is the vibration area of the set vibration component. Therefore, according to the corresponding relationship between the sound intensity of the environmental noise and the vibration area, the vibration area corresponding to the collected sound intensity of the environmental noise in the current environment of the electronic device can be determined.

作为另一种实施方式,根据所述声音强度确定所述振动部件的振动区域的实施方式为:As another implementation manner, the implementation manner of determining the vibration area of the vibration component according to the sound intensity is:

判断所述声音强度是否大于预设值。其中,预设值为一个预设的声音强度值,该声音强度值可以是当前的电子装置发出的声音的声音强度,例如,为当前的电子装置的系统音量或者针对发声请求对应的应用程序而设置的音量,也可以是上述的预设音量。则预设值对应所述振动部件的预设振动区域,则所对应的预设振动区域用于发出该预设值对应的音量。Determine whether the sound intensity is greater than a preset value. The preset value is a preset sound intensity value, and the sound intensity value may be the sound intensity of the sound emitted by the current electronic device, for example, the system volume of the current electronic device or the application program corresponding to the sound request. The set volume may also be the above-mentioned preset volume. The preset value corresponds to the preset vibration area of the vibration component, and the corresponding preset vibration area is used to emit the volume corresponding to the preset value.

如果所采集的环境噪声的声音强度大于预设值,增大所述预设振动区域,将增大后的所述预设振动区域作为本次用于振动发声的振动区域,也就是说,增加参与到本次振动发声中的振动区域,以使振动发声的声音前度更大。If the sound intensity of the collected environmental noise is greater than the preset value, the preset vibration area is increased, and the increased preset vibration area is used as the vibration area for vibrating sound this time, that is, increasing Participate in the vibration area of this vibration sound to make the sound of the vibration sound bigger.

例如,预设振动区域为振动区域Q1和Q2,即对应两个振动区域,则当所采集的环境噪声的声音强度大于预设值,将预设振动区域修改为振动区域Q1、Q2和Q3,即对应了三个振动区域,则将振动区域Q1、Q2和Q3作为本次所设置的振动区域。For example, the preset vibration areas are the vibration areas Q1 and Q2, that is, corresponding to two vibration areas, then when the sound intensity of the collected environmental noise is greater than the preset value, the preset vibration areas are modified to the vibration areas Q1, Q2 and Q3, namely Corresponding to three vibration areas, the vibration areas Q1, Q2 and Q3 are used as the vibration areas set this time.

再例如,预设振动区域为振动区域Q2、Q3和Q4,即对应三个振动区域,则当所采集的环境噪声的声音强度小于预设值,将预设振动区域修改为振动区域Q2和Q3,即对应了两个振动区域,则将振动区域Q2和Q3作为本次所设置的振动区域。For another example, the preset vibration areas are vibration areas Q2, Q3 and Q4, that is, corresponding to three vibration areas, then when the sound intensity of the collected environmental noise is less than the preset value, the preset vibration areas are modified to vibration areas Q2 and Q3, That is, two vibration areas are corresponding, and the vibration areas Q2 and Q3 are used as the vibration areas set this time.

由此,就能够实现在环境噪声的声音强度较高时,控制较多的振动区域振动发声,由此提高电子装置的发出的声音的音量,使得用户能够更加清晰的听见电子装置发出的声音。而在环境噪声的声音强度较低时,则控制较少的振动区域振动发声,可以在保证电子装置发出的声音能够被用户听清的情况下,减少电子装置的能耗。需要说明的是,当所采集的环境噪声的声音强度小于预设值时,可以不改变预设振动区域而保持不变,也可以为了能耗和屏幕的寿命的考虑而减小所述预设振动区域。Therefore, when the sound intensity of the environmental noise is high, more vibration areas can be controlled to vibrate and sound, thereby increasing the volume of the sound emitted by the electronic device, so that the user can hear the sound emitted by the electronic device more clearly. When the sound intensity of the environmental noise is low, less vibration areas are controlled to vibrate and emit sound, which can reduce the power consumption of the electronic device while ensuring that the sound emitted by the electronic device can be heard clearly by the user. It should be noted that when the sound intensity of the collected environmental noise is less than the preset value, the preset vibration area may remain unchanged without changing, or the preset vibration may be reduced for the consideration of energy consumption and the life of the screen. area.

另外,为了避免在调整预设振动区域之后,即使环境噪声的变化不大,依然会调整振动区域,而导致调整过于频繁,因此,电子装置记录下本次所采集的环境噪声的声音强度,在调整了振动区域之后,下次采集到环境噪声的声音强度,获取与上次所采集的环境噪声的声音强度的变化幅度,如果变化幅度小于预设数值,则不再执行根据所述声音强度确定所述振动部件的振动区域的操作。其中,预设数值根据需求而设定,用于表示变化幅度较小,而变化幅度可以为两次的声音强度的差值的绝对值。In addition, in order to avoid that after adjusting the preset vibration area, even if the environmental noise does not change much, the vibration area will still be adjusted, resulting in too frequent adjustment. Therefore, the electronic device records the sound intensity of the environmental noise collected this time. After adjusting the vibration area, the sound intensity of the environmental noise is collected next time, and the change range from the sound intensity of the environmental noise collected last time is obtained. If the change range is smaller than the preset value, the determination based on the sound intensity is no longer performed. Operation of the vibrating region of the vibrating member. The preset value is set according to requirements and is used to indicate that the variation range is small, and the variation range may be the absolute value of the difference between the two sound intensities.

S704:控制所述振动部件的振动区域振动发声。S704: Control the vibration region of the vibration component to vibrate and emit sound.

需要说明的是,上述步骤中未详细描述的部分,可参考前述实施例,在此不再赘述。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.

请参阅图9,示出了本申请实施例提供的发声控制装置900,该装置用于降低环境噪声对屏幕发声的影响,具体地,该装置包括:采集单元901、获取单元902、设置单元903和发声单元904。Please refer to FIG. 9 , which shows a sound emission control device 900 provided by an embodiment of the present application. The device is used to reduce the influence of environmental noise on screen sound production. Specifically, the device includes: a collection unit 901 , an acquisition unit 902 , and a setting unit 903 and sounding unit 904.

采集单元901,用于基于获取的发声请求,采集所述电子装置的当前环境下的环境噪声。The collection unit 901 is configured to collect environmental noise in the current environment of the electronic device based on the acquired voice request.

获取单元902,用于获取所述环境噪声的声音强度。The obtaining unit 902 is configured to obtain the sound intensity of the environmental noise.

设置单元903,用于根据所述声音强度设置所述振动部件的振动参数。A setting unit 903 is configured to set vibration parameters of the vibration component according to the sound intensity.

发声单元904,用于根据设置后的振动参数控制所述振动部件发出声音。The sound generating unit 904 is configured to control the vibration component to emit sound according to the set vibration parameters.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。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,基于上述的方法和装置,本申请实施例还提供一种电子装置100。Please refer to FIG. 1 again. Based on the above method and device, an embodiment of the present application further provides an electronic device 100 .

示例性的,电子装置100可以为移动或便携式并执行无线通信的各种类型的计算机系统设备中的任何一种(图1中只示例性的示出了一种形态)。具体的,电子装置100可以为移动电话或智能电话(例如,基于iPhone TM,基于Android TM的电话),便携式游戏设备(例如Nintendo DS TM, PlayStation Portable TM,Gameboy Advance TM,iPhone TM)、膝上型电脑、PDA、便携式互联网设备、音乐播放器以及数据存储设备,其他手持设备以及诸如手表、耳机、吊坠、耳机等,电子装置100还可以为其他的可穿戴设备(例如,诸如电子眼镜、电子衣服、电子手镯、电子项链、电子纹身、电子设备或智能手表的头戴式设备(HMD))。Exemplarily, the electronic device 100 may be any one of various types of computer system devices that are mobile or portable and perform wireless communication (only one form is exemplarily shown in FIG. 1 ). Specifically, the electronic device 100 may be a mobile phone or a smart phone (eg, iPhone TM-based, Android TM-based phones), portable game devices (eg Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), laptop laptops, PDAs, portable Internet devices, music players, and data storage devices, other handheld devices and such as watches, earphones, pendants, earphones, etc. The electronic device 100 can also be other wearable devices (eg, such as electronic glasses, electronic Clothing, electronic bracelets, electronic necklaces, electronic tattoos, head-mounted devices (HMDs) for electronic devices or smart watches).

电子装置100还可以是多个电子设备中的任何一个,多个电子设备包括但不限于蜂窝电话、智能电话、其他无线通信设备、个人数字助理、音频播放器、其他媒体播放器、音乐记录器、录像机、照相机、其他媒体记录器、收音机、医疗设备、车辆运输仪器、计算器、可编程遥控器、寻呼机、膝上型计算机、台式计算机、打印机、上网本电脑、个人数字助理(PDA)、便携式多媒体播放器(PMP)、运动图像专家组(MPEG-1或MPEG-2)音频层 3(MP3)播放器,便携式医疗设备以及数码相机及其组合。The electronic device 100 may also be any of a number of electronic devices including, but not limited to, cellular phones, smart phones, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders , video recorders, cameras, other media recorders, radios, medical equipment, vehicle transportation equipment, calculators, programmable remote controls, pagers, laptops, desktop computers, printers, netbooks, personal digital assistants (PDAs), portable Multimedia players (PMP), Moving Picture Experts Group (MPEG-1 or MPEG-2) Audio Layer 3 (MP3) players, portable medical devices and digital cameras and combinations thereof.

在一些情况下,电子装置100可以执行多种功能(例如,播放音乐,显示视频,存储图片以及接收和发送电话呼叫)。如果需要,电子装置100 可以是诸如蜂窝电话、媒体播放器、其他手持设备、腕表设备、吊坠设备、听筒设备或其他紧凑型便携式设备的便携式设备。In some cases, the electronic device 100 may perform various functions (eg, play music, display video, store pictures, and receive and send phone calls). If desired, the electronic device 100 may be a portable device such as a cellular phone, media player, other handheld device, wristwatch device, pendant device, handset device, or other compact portable device.

如图1所示的电子装置100包括电子本体部10,所述电子本体部10包括壳体12及设置在所述壳体12上的屏幕120。所述壳体12可采用金属、如钢材、铝合金制成。本实施例中,所述屏幕120通常包括显示面板111,也可包括用于响应对所述显示面板111进行触控手势的电路等。所述显示面板111可以为一个液晶显示面板(Liquid Crystal Display,LCD),在一些实施例中,所述显示面板111同时为一个触摸屏109。The electronic device 100 shown in FIG. 1 includes an electronic body part 10 , and the electronic body part 10 includes a casing 12 and a screen 120 disposed on the casing 12 . The casing 12 can be made of metal, such as steel or aluminum alloy. In this embodiment, the screen 120 usually includes the display panel 111 , and may also include a circuit for responding to a touch gesture performed on the display panel 111 , and the like. The display panel 111 may be a liquid crystal display panel (Liquid Crystal Display, LCD). In some embodiments, the display panel 111 is a touch screen 109 at the same time.

请同时参阅图10,在实际的应用场景中,所述电子装置100可作为智能手机终端进行使用,在这种情况下所述电子本体部10通常还包括一个或多个(图中仅示出一个)处理器102、存储器104、RF(Radio Frequency,射频)模块106、音频电路110、传感器114、输入模块118、电源模块122。本领域普通技术人员可以理解,图10所示的结构仅为示意,其并不对所述电子本体部10的结构造成限定。例如,所述电子本体部10还可包括比图 10中所示更多或者更少的组件,或者具有与图1所示不同的配置。Please refer to FIG. 10 at the same time. In an actual application scenario, the electronic device 100 can be used as a smart phone terminal. In this case, the electronic body 10 usually includes one or more (only shown in the figure). a) processor 102 , memory 104 , RF (Radio Frequency, radio frequency) module 106 , audio circuit 110 , sensor 114 , input module 118 , and power module 122 . Those skilled in the art can understand that the structure shown in FIG. 10 is only for illustration, and does not limit the structure of the electronic body portion 10 . For example, the electronic body portion 10 may also include more or fewer components than those shown in FIG. 10, or have a different configuration than that shown in FIG. 1 .

本领域普通技术人员可以理解,相对于所述处理器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 processor 102, all other components belong to peripheral devices, and the processor 102 and these peripheral devices are coupled through a plurality of peripheral device interfaces 124. The peripheral interface 124 can be implemented based on the following standards: Universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (Serial Peripheral Interface) , SPI), Inter-Integrated Circuit (I2C), but not limited to the above standards. In some examples, the peripheral interface 124 may only include a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, for connecting the display panel 111's display controller or a memory controller for connecting to memory. In addition, these controllers can also be separated from the peripheral interface 124 and integrated into the processor 102 or corresponding peripherals.

所述存储器104可用于存储软件程序以及模块,所述处理器102通过运行存储在所述存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理。所述存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,所述存储器104可进一步包括相对于所述处理器102远程设置的存储器,这些远程存储器可以通过网络连接至所述电子本体部10或所述屏幕120。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104 . The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, and these remote memories may be connected to the electronic body 10 or the screen 120 via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

所述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),无线保真技术 (Wirel ess,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 Division Multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wire ess, Fidelity) , WiFi) (such as IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), Internet telephony (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 are not currently being 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 sound jack 103 and the microphone 105 together provide an audio interface between the user and the electronic body 10 or the screen 120 . Specifically, the audio circuit 110 receives sound data from the processor 102, converts the sound data into electrical signals, and transmits the electrical signals to the exciter 131, so that the audio circuit 110 can be used as the above-mentioned driving circuit. The electric signal is used as the driving signal of the exciter 131, and the exciter 131 controls the vibration of the vibrating component according to the electric signal, thereby converting the sound data into sound waves that can be heard by the human ear. The audio circuit 110 also receives electrical signals from the microphone 105, converts the electrical signals into sound data, and transmits the sound data to the processor 102 for further processing. Audio data may be obtained from the memory 104 or through the RF module 106. In addition, audio data may also be stored in the memory 104 or transmitted through the RF module 106 .

所述传感器114设置在所述电子本体部10内或所述屏幕120内,所述传感器114的实例包括但并不限于:光传感器、压力传感器、加速度传感器114F、接近传感器114J以及其他传感器。The sensor 114 is disposed in the electronic body 10 or in the screen 120 , and examples of the sensor 114 include, but are not limited to, a light sensor, a pressure sensor, an acceleration sensor 114F, a proximity sensor 114J, and other sensors.

具体地,所述光传感器可包括光线传感器。光线传感器能够根据电子装置所处环境的光线来调节屏幕的亮度。例如,在光线充足的地方屏幕会很亮,相反,如果在暗处,屏幕较暗(与屏幕亮度的设置也有关系),这样既保护了眼睛又节省了电量。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 electronic device 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 electronic device 100 . That is, the pressure sensor detects the pressure generated by the contact or pressing between the user and the electronic device, for example, the pressure generated by the contact or pressing between the user's ear and the electronic device. Therefore, the pressure sensor can be used to determine whether contact or pressing occurs between the user and the electronic device 100, and the magnitude of the pressure.

请再次参阅图1,具体地在图1所示的实施例中,所述光线传感器及所述压力传感器邻近所述显示面板111设置。所述光线传感器可在有物体靠近所述屏幕120时,例如所述电子本体部10移动到耳边时,所述处理器102 关闭显示输出。Please refer to FIG. 1 again. Specifically, in the embodiment shown in FIG. 1 , 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 processor 102 when an object approaches the screen 120, for example, when the electronic body 10 moves to the ear.

作为运动传感器的一种,加速度传感器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 electronic body 10 can also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, etc., which will not be repeated here.

本实施例中,所述输入模块118可包括设置在所述屏幕120上的所述触摸屏109,所述触摸屏109可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触摸屏109上或在所述触摸屏109附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,所述触摸屏109可包括触摸检测装置和触摸控制器。其中,所述触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给所述触摸控制器;所述触摸控制器从所述触摸检测装置上接收触摸信息,并将该触摸信息转换成触点坐标,再送给所述处理器102,并能接收所述处理器102发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现所述触摸屏109的触摸检测功能。In this embodiment, the input module 118 may include the touch screen 109 disposed on the screen 120, and the touch screen 109 may collect the user's touch operations on or near it (for example, the user uses a finger, a stylus, etc. A suitable object or accessory is operated on or near the touch screen 109 ), and the corresponding connection device is driven according to a preset program. Optionally, the touch screen 109 may include a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and sends the signal to the touch controller. The touch information is converted into contact coordinates, and then sent to the processor 102, and the commands sent by the processor 102 can be received and executed. In addition, the touch detection function of the touch screen 109 can be realized by various types such as resistive type, capacitive type, infrared ray and surface acoustic wave.

所述屏幕120用于显示由用户输入的信息、提供给用户的信息以及所述电子本体部10的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,所述触摸屏 109可设置于所述显示面板111上从而与所述显示面板111构成一个整体。The screen 120 is used to display the information input by the user, the information provided to the user, and various graphical user interfaces of the electronic body 10. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any of them. In one example, the touch screen 109 can be disposed on the display panel 111 to form a whole with the display panel 111 .

所述电源模块122用于向所述处理器102以及其他各组件提供电力供应。具体地,所述电源模块122可包括电源管理系统、一个或多个电源(如电池或者交流电)、充电电路、电源失效检测电路、逆变器、电源状态指示灯以及其他任意与所述电子本体部10或所述屏幕120内电力的生成、管理及分布相关的组件。The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (such as batteries or AC power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator, and any other components related to the electronic body. components related to the generation, management and distribution of power within the unit 10 or the screen 120 .

所述电子装置100还包括定位器119,所述定位器119用于确定所述电子装置100所处的实际位置。本实施例中,所述定位器119采用定位服务来实现所述电子装置100的定位,所述定位服务,应当理解为通过特定的定位技术来获取所述电子装置100的位置信息(如经纬度坐标),在电子地图上标出被定位对象的位置的技术或服务。The electronic device 100 further includes a locator 119, and the locator 119 is used to determine the actual location where the electronic device 100 is located. In this embodiment, the locator 119 uses a positioning service to realize the positioning of the electronic device 100. The positioning service should be understood as obtaining the position information (such as latitude and longitude coordinates) of the electronic device 100 through a specific positioning technology ), a technology or service that marks the location of the located object on an electronic map.

综上所述,本申请实施例提供了一种发声控制方法、装置、电子装置及计算机可读介质,在获取到发声请求之后,基于所获取的发声请求,采集电子装置的当前环境下的环境噪声,然后,获取环境噪声的声音强度,根据声音强度控制所述振动部件振动。因此,不仅可以通过屏幕或壳体的振动方式来发声,可以避免在电子装置上设置出音孔,也可以考虑环境噪声对电子装置所发出的声音的影响,而根据环境噪声的声音强度来调整振动部件的振动,从而调整振动发声。In summary, the embodiments of the present application provide a voice control method, device, electronic device, and computer-readable medium. After acquiring the voice request, based on the acquired voice request, the environment in the current environment of the electronic device is collected. Then, the sound intensity of the environmental noise is obtained, and the vibration part is controlled to vibrate according to the sound intensity. Therefore, not only can sound be produced by the vibration of the screen or the casing, it is possible to avoid setting sound holes on the electronic device, but also the influence of environmental noise on the sound emitted by the electronic device can be considered, and the sound intensity of the environmental noise can be adjusted according to the sound intensity. The vibration of the vibrating part, thereby adjusting the vibration to sound.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。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 application. 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 application, "plurality" means at least two, such as two, three, etc., unless expressly and specifically defined otherwise.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any description of a process or method 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 a specified logical function or step of the process , and the scope of the preferred embodiments of the present application 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 application 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 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 in the embodiments of the present application.

Claims (8)

1. A sound production control method is applied to a mobile terminal, the mobile terminal comprises a vibration component capable of vibrating to produce sound, the vibration component is a screen of the mobile terminal, a back plate is positioned on the bottom surface of the screen, the back plate is used as one electrode of a capacitor, and the screen is used as the other electrode of the capacitor, and the method comprises the following steps:
acquiring environmental noise of the mobile terminal in the current environment through the acquired change of the capacitance value of the capacitor under the condition that the screen does not vibrate and sound based on the acquired sound production request;
acquiring the sound intensity and the sound frequency of the environmental noise;
increasing the vibration amplitude of the vibration member according to the sound intensity;
setting the vibration frequency of the vibration component according to the sound frequency, wherein the vibration frequency is different from the sound frequency, a non-overlapping area exists between the sound frequency and the vibration frequency, and the vibration amplitude corresponding to the vibration frequency in the non-overlapping area is the highest;
and controlling the vibration component to emit sound according to the set vibration frequency and the set vibration amplitude, so that the frequency of the sound emitted by the vibration component is different from the sound frequency of the environmental noise.
2. The method of claim 1, wherein the setting of the vibration amplitude of the vibrating member according to the sound intensity; setting a vibration frequency of the vibration member according to the sound frequency; controlling the vibration component to make a sound according to the set vibration frequency and the set vibration amplitude, and the method comprises the following steps:
determining a vibration region of the vibration member according to the sound intensity;
setting a vibration frequency of a vibration area of the vibration member according to the sound frequency;
and controlling the vibration area of the vibration component to vibrate and sound.
3. The method of claim 2, wherein said determining a vibration region of said vibrating component from said sound intensity comprises:
judging whether the sound intensity is larger than a preset value or not, wherein the preset value corresponds to a preset vibration area of the vibration component;
if the vibration area is larger than the preset value, increasing the preset vibration area, and taking the increased preset vibration area as the vibration area for vibration sounding;
and if the preset vibration area is smaller than the preset value, reducing the preset vibration area, and taking the reduced preset vibration area as the vibration area for vibration sounding.
4. The method of claim 2, wherein said setting a size of a vibration region of the vibration member according to the sound intensity comprises:
and determining a vibration area corresponding to the acquired sound intensity of the environmental noise in the current environment of the mobile terminal according to the preset corresponding relation between the sound intensity of the environmental noise and the vibration area.
5. The method according to any one of claims 1 to 4, wherein the acquiring, based on the acquired sounding request, ambient noise in the current environment of the mobile terminal through the acquired capacitance change between the screen and the back panel comprises:
determining whether the request to speak corresponds to a non-headset mode of conversation;
and if the mobile terminal corresponds to the non-earphone call mode, acquiring the environmental noise of the mobile terminal in the current environment through the acquired capacitance change between the screen and the back plate.
6. The utility model provides a vocal controlling means, its characterized in that is applied to mobile terminal, mobile terminal is including the vibration part that can vibrate the sound production, the vibration part does mobile terminal's screen, a backplate are located the bottom surface of screen, the backplate is as an electrode of a electric capacity, the screen is as another electrode of electric capacity, the device includes:
the acquisition unit is used for acquiring the environmental noise of the mobile terminal in the current environment through the acquired capacitance change under the condition that the screen does not vibrate and sound based on the acquired sound production request;
an acquisition unit configured to acquire a sound intensity and a sound frequency of the environmental noise;
a setting unit configured to set a vibration amplitude of the vibration member according to the sound intensity, and set a vibration frequency of the vibration member according to the sound frequency, the vibration frequency being different from the sound frequency, a non-overlapping region being present between the sound frequency and the vibration frequency, and the vibration amplitude corresponding to the vibration frequency located in the non-overlapping region being highest;
and the sound production unit is used for controlling the vibration component to produce sound according to the set vibration frequency and the set vibration amplitude, so that the frequency of the sound produced by the vibration component is different from the sound frequency of the environmental noise.
7. A mobile terminal is characterized by comprising a vibration component capable of vibrating and sounding, wherein the vibration component is a screen of the mobile terminal, a back plate is positioned on the bottom surface of the screen, the back plate is used as one electrode of a capacitor, and the screen is used as the other electrode of the capacitor; further comprising a memory and a processor, the memory coupled with the processor; the memory stores instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-5.
8. A computer-readable medium having program code executable by a processor, wherein the program code causes the processor to perform the method of any one of claims 1-5.
CN201810519421.3A 2018-05-17 2018-05-17 Voice control method, device, electronic device and computer readable medium Expired - Fee Related CN108810198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810519421.3A CN108810198B (en) 2018-05-17 2018-05-17 Voice control method, device, electronic device and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810519421.3A CN108810198B (en) 2018-05-17 2018-05-17 Voice control method, device, electronic device and computer readable medium

Publications (2)

Publication Number Publication Date
CN108810198A CN108810198A (en) 2018-11-13
CN108810198B true CN108810198B (en) 2020-06-23

Family

ID=64090456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810519421.3A Expired - Fee Related CN108810198B (en) 2018-05-17 2018-05-17 Voice control method, device, electronic device and computer readable medium

Country Status (1)

Country Link
CN (1) CN108810198B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109908578B (en) * 2019-01-28 2022-07-05 努比亚技术有限公司 Game vibration sense control method, terminal and computer readable storage medium
WO2020258328A1 (en) * 2019-06-28 2020-12-30 瑞声声学科技(深圳)有限公司 Motor vibration method, device, system, and readable medium
CN111163197B (en) * 2020-01-14 2021-07-13 青岛海信移动通信技术股份有限公司 A kind of mobile terminal device and the method for sounding on the screen thereof
CN115623123B (en) * 2021-07-13 2024-07-23 北京荣耀终端有限公司 Audio processing method and equipment
CN113489840B (en) * 2021-07-30 2023-05-30 Oppo广东移动通信有限公司 Event reminder method, device, storage medium and electronic equipment
CN114420093A (en) * 2021-12-14 2022-04-29 广州市迪声音响有限公司 A method and system for synchronously regulating volume and vibration intensity
EP4589986A4 (en) * 2022-10-07 2026-01-07 Samsung Electronics Co Ltd ELECTRONIC DEVICE AND METHOD FOR GENERATING A VIBRATION SOUND SIGNAL
CN116939095B (en) * 2023-08-18 2025-07-29 武汉市聚芯微电子有限责任公司 Vibration method, device, equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929522A (en) * 2013-01-10 2014-07-16 联想(北京)有限公司 Control method and control apparatus of electronic device, and electronic device
CN105159459A (en) * 2015-09-06 2015-12-16 东南大学 Virtual object three-dimensional shape tactile representation method capable of being used for mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8977974B2 (en) * 2008-12-08 2015-03-10 Apple Inc. Ambient noise based augmentation of media playback
CN104469632B (en) * 2014-11-28 2018-02-02 华勤通讯技术有限公司 A kind of vocal technique and sound-producing device
CN106254648B (en) * 2016-08-01 2018-09-18 珠海格力电器股份有限公司 Method and device for adjusting volume of mobile equipment and mobile equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103929522A (en) * 2013-01-10 2014-07-16 联想(北京)有限公司 Control method and control apparatus of electronic device, and electronic device
CN105159459A (en) * 2015-09-06 2015-12-16 东南大学 Virtual object three-dimensional shape tactile representation method capable of being used for mobile terminal

Also Published As

Publication number Publication date
CN108810198A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108810198B (en) Voice control method, device, electronic device and computer readable medium
CN108683761B (en) Sound production control method and device, electronic device and computer readable medium
CN109032558B (en) Voice control method, device, electronic device and computer readable medium
CN108646971B (en) Screen sound control method, device and electronic device
CN108881568B (en) Method, device, electronic device and storage medium for sound from display screen
CN109032556B (en) Voice control method, device, electronic device, and storage medium
CN109062535B (en) Voice control method, device, electronic device and computer readable 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
CN108833638A (en) Sound producing method, device, electronic device and storage medium
CN108958632B (en) Sound production control method and device, electronic equipment and storage medium
CN108769327A (en) Method and device for sounding display screen, electronic device and storage medium
CN109086023B (en) Sound production control method and device, electronic equipment 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
CN109085985B (en) Sound production control method, sound production control device, electronic device, and storage medium
CN109144460B (en) Voice control method, device, electronic device, and storage medium
CN109040919B (en) Sound production method, sound production device, electronic device and computer readable medium
CN108958697A (en) Screen sound control method, device and electronic device
CN108712706B (en) Sound production method, sound production device, electronic device and storage medium
CN108900688B (en) Voice control method, device, electronic device and computer readable medium
CN108810764B (en) Sound control method, device and electronic device
CN108900689B (en) Sound production control method and device, electronic equipment and storage medium
CN108958631B (en) Screen sound control method, device and electronic device
CN109086025B (en) Sounding control method, 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: 20200623

CF01 Termination of patent right due to non-payment of annual fee