CN111770416B - Speaker control method, device and electronic device - Google Patents
Speaker control method, device and electronic device Download PDFInfo
- Publication number
- CN111770416B CN111770416B CN202010574225.3A CN202010574225A CN111770416B CN 111770416 B CN111770416 B CN 111770416B CN 202010574225 A CN202010574225 A CN 202010574225A CN 111770416 B CN111770416 B CN 111770416B
- Authority
- CN
- China
- Prior art keywords
- electronic device
- speaker
- loudspeaker
- input
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000012545 processing Methods 0.000 claims description 13
- 230000004044 response Effects 0.000 claims description 10
- 230000005236 sound signal Effects 0.000 claims description 7
- 230000000694 effects Effects 0.000 abstract description 34
- 238000004891 communication Methods 0.000 abstract description 14
- 238000010586 diagram Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 239000011435 rock Substances 0.000 description 4
- 238000009434 installation Methods 0.000 description 3
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 229910052742 iron Inorganic materials 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R5/00—Stereophonic arrangements
- H04R5/02—Spatial or constructional arrangements of loudspeakers
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及通信技术领域,尤其涉及一种扬声器控制放方法、装置及电子设备。The embodiments of the present application relate to the field of communication technologies, and in particular, to a method, an apparatus, and an electronic device for controlling and amplifying a speaker.
背景技术Background technique
随着电子技术的发展,电子设备可以通过安装在电子设备中的扬声器播放音频。例如,用户可以通过电子设备的扬声器以外放模式播放用户喜欢的歌曲。With the development of electronic technology, electronic devices can play audio through speakers installed in the electronic devices. For example, the user can play the user's favorite song through the loudspeaker of the electronic device.
目前,基于电子设备的结构设计的限制,如电子设备的厚度要求,电子设备内部腔体的尺寸要求等,电子设备中通常使用体积较小、且较为轻薄的扬声器。而一般情况下,在通过扬声器以外放模式播放音频时,由于扬声器发出声音的方位和层次较为单一,因此导致电子设备播放音频的效果较差。At present, based on the limitations of the structural design of the electronic device, such as the thickness requirements of the electronic device, the size requirements of the internal cavity of the electronic device, etc., smaller and thinner speakers are usually used in the electronic device. In general, when audio is played through a speaker in an external playback mode, since the orientation and level of the sound emitted by the speaker is relatively single, the effect of audio playback by the electronic device is poor.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种扬声器控制、装置及电子设备,能够解决电子设备播放音频的效果较差的问题。The purpose of the embodiments of the present application is to provide a speaker control device, an electronic device, and an electronic device, which can solve the problem of poor audio playback effect of the electronic device.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种扬声器控制方法,该方法应用于第一电子设备,该方法包括:在第一电子设备与第二电子设备接触的情况下,控制第一扬声器和第二扬声器开启;其中,该第一扬声器为第一电子设备的扬声器,该第二扬声器为第二电子设备的扬声器。In a first aspect, an embodiment of the present application provides a method for controlling a speaker. The method is applied to a first electronic device. The method includes: when the first electronic device is in contact with the second electronic device, controlling the first speaker and the second electronic device. Two speakers are turned on; wherein, the first speaker is the speaker of the first electronic device, and the second speaker is the speaker of the second electronic device.
第二方面,本申请实施例提供了一种扬声器控制装置,该装置应用于第一电子设备,该装置包括处理模块;In a second aspect, an embodiment of the present application provides a speaker control device, the device is applied to a first electronic device, and the device includes a processing module;
处理模块,用于在第一电子设备与第二电子设备接触的情况下,控制第一扬声器和第二扬声器开启;其中,该第一扬声器为第一电子设备的扬声器,该第二扬声器为第二电子设备的扬声器。The processing module is used to control the first speaker and the second speaker to turn on when the first electronic device is in contact with the second electronic device; wherein, the first speaker is the speaker of the first electronic device, and the second speaker is the first speaker Speakers for two electronic devices.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the The steps of the method of the first aspect.
第四方面,本申请实施例提供了一种耳机,该耳机包括:控制模块,以及与控制模块连接的第二扬声器、第三扬声器和电磁传感器,该第二扬声器为外放扬声器,该第三扬声器为听筒扬声器;控制模块,用于在该电磁传感器检测到耳机和电子设备接触的情况下,向电子设备发送指示信号,并接收电子设备发送的控制信号,以及根据该控制信号控制该第二扬声器开启;其中,该指示信号用于指示耳机和电子设备接触。In a fourth aspect, an embodiment of the present application provides an earphone, the earphone includes a control module, a second speaker, a third speaker, and an electromagnetic sensor connected to the control module, the second speaker is an external speaker, and the third speaker is an external speaker. The speaker is an earpiece speaker; the control module is used to send an indication signal to the electronic device when the electromagnetic sensor detects that the earphone is in contact with the electronic device, receive the control signal sent by the electronic device, and control the second device according to the control signal. The speaker is turned on; wherein, the indication signal is used to indicate that the earphone and the electronic device are in contact.
第五方面,本申请实施例提供了一种可读存储介质,该可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。In a fifth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
第六方面,本申请实施例提供了一种芯片,该芯片包括处理器和通信接口,通信接口和处理器耦合,该处理器用于运行程序或指令,实现如第一方面的方法。In a sixth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the method of the first aspect.
在本申请实施例中,在第一电子设备与第二电子设备接触的情况下,第一电子设备控制第一电子设备的第一扬声器和第二电子设备的第二扬声器开启。通过该方案,当第一电子设备和第二电子设备接触时,第一电子设备能够控制其自身的第一扬声器和第二电子设备的第二扬声器开启,由于第一扬声器和第二扬声器分别属于不同的电子设备,且两者的安装在不同电子设备的不同的位置,因此在通过第一扬声器和第二扬声器播放音频时,能够丰富音频的层次,产生立体声播放效果,从而提高电子设备播放音频的效果。In this embodiment of the present application, when the first electronic device is in contact with the second electronic device, the first electronic device controls the first speaker of the first electronic device and the second speaker of the second electronic device to turn on. Through this solution, when the first electronic device and the second electronic device are in contact, the first electronic device can control its own first speaker and the second speaker of the second electronic device to turn on, because the first speaker and the second speaker belong to Different electronic devices, and the two are installed in different positions of different electronic devices, so when audio is played through the first speaker and the second speaker, the audio level can be enriched and the stereo playback effect can be generated, thereby improving the audio playback of the electronic device. Effect.
附图说明Description of drawings
图1为本申请实施例提供的一种扬声器控制方法的示意图之一;FIG. 1 is one of the schematic diagrams of a speaker control method provided by an embodiment of the present application;
图2为本申请实施例提供的一种扬声器控制方法的示意图之二;FIG. 2 is the second schematic diagram of a method for controlling a loudspeaker provided by an embodiment of the present application;
图3为本申请实施例提供的一种扬声器控制方法的示意图之三;FIG. 3 is a third schematic diagram of a speaker control method provided by an embodiment of the present application;
图4为本申请实施例提供的一种操作第一电子设备和第二电子设备连接的示意图;4 is a schematic diagram of operating the connection between a first electronic device and a second electronic device according to an embodiment of the present application;
图5为本申请实施例提供的一种扬声器控制方法的示意图之四;FIG. 5 is a fourth schematic diagram of a speaker control method provided by an embodiment of the present application;
图6为本申请实施例提供的一种电子设备开启扬声器的用户操作的示意图;6 is a schematic diagram of a user operation for turning on a speaker of an electronic device according to an embodiment of the present application;
图7为本申请实施例提供的一种扬声器控制方法的示意图之五;FIG. 7 is a fifth schematic diagram of a speaker control method provided by an embodiment of the present application;
图8为本申请实施例提供的一种耳机结构示意图;FIG. 8 is a schematic structural diagram of an earphone according to an embodiment of the present application;
图9为本申请实施例提供的一种扬声器控制装置的结构示意图之一;FIG. 9 is one of the schematic structural diagrams of a speaker control device provided by an embodiment of the present application;
图10为本申请实施例提供的一种扬声器控制装置的结构示意图之二;FIG. 10 is the second schematic structural diagram of a speaker control device provided by an embodiment of the application;
图11为本申请实施例提供的电子设备的硬件示意图之一;FIG. 11 is one of the hardware schematic diagrams of the electronic device provided by the embodiment of the application;
图12为本申请实施例提供的电子设备的硬件示意图之二。FIG. 12 is the second schematic diagram of the hardware of the electronic device 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 accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein. In addition, the objects distinguished by "first", "second", etc. are usually one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的扬声器控制方法进行详细地说明。The speaker control method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
本申请实施例中,第一电子设备可以根据其与第二电子设备的接触情况,控制第一电子设备的扬声器和第二电子设备的扬声器开启,以开启立体声模式。具体的,在第一电子设备和第二电子设备接触的情况下,第一电子接收第二电子设备发送的指示该接触的指示信号,然后,根据该指示信号控制第一电子设备的第一扬声器和第二电子设备的第二扬声器开启。如此,使得第一扬声器和第二扬声器能够同时以外放模式播放音频,由于第一扬声器和第二扬声器的安装位置不同,从而丰富音频播放的层次,产生立体声播放效果,进而提高电子设备播放音频的效果。In this embodiment of the present application, the first electronic device may control the speaker of the first electronic device and the speaker of the second electronic device to be turned on according to the contact situation between the first electronic device and the second electronic device, so as to turn on the stereo mode. Specifically, when the first electronic device is in contact with the second electronic device, the first electronic device receives an instruction signal sent by the second electronic device indicating the contact, and then controls the first speaker of the first electronic device according to the instruction signal and the second speaker of the second electronic device is turned on. In this way, the first speaker and the second speaker can play audio in the external mode at the same time, and because the installation positions of the first speaker and the second speaker are different, the level of audio playback is enriched, and a stereo playback effect is produced, thereby improving the electronic equipment to play audio. Effect.
实施例1Example 1
如图1所示,本申请实施例提供一种扬声器控制方法,应用于第一电子设备,该方法可以包括下述的步骤101。As shown in FIG. 1 , an embodiment of the present application provides a speaker control method, which is applied to a first electronic device, and the method may include the following step 101 .
步骤101、在第一电子设备与第二电子设备接触的情况下,第一电子设备控制第一扬声器和第二扬声器开启。Step 101 , when the first electronic device is in contact with the second electronic device, the first electronic device controls the first speaker and the second speaker to be turned on.
其中,上述第一扬声器为第一电子设备的扬声器,第二扬声器为第二电子设备的扬声器。The first speaker is a speaker of the first electronic device, and the second speaker is a speaker of the second electronic device.
可选的,本申请实施例中,上述第一电子设备可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备等,非移动电子设备可以为服务器、网络附属存储器、个人计算机、电视机等,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the above-mentioned first electronic device may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a notebook computer, a PDA, a vehicle electronic device, a wearable device, etc., and the non-mobile electronic device can be a server, a network attached storage, a personal computer, a TV, etc. Examples are not specifically limited.
可选的,本申请实施例中,上述第二电子设备可以为能够播放音频的便携式装置或设备。具体的,第二电子设备可以为以下任一项:有线耳机,无线耳机,单扬声器蓝牙音箱,具有单扬声器的智能手环等。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the above-mentioned second electronic device may be a portable device or device capable of playing audio. Specifically, the second electronic device may be any of the following: a wired headset, a wireless headset, a single-speaker Bluetooth speaker, a smart bracelet with a single-speaker, and the like. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
需要说明的是,本申请实施例中,第一电子设备和第二电子设备接触是指,第一电子设备和第二电子设备为接触式连接。其中,该接触式连接可以为能够传输信号的接触式连接,如,电连接,磁连接等。该接触式连接也可以不能传输信号的连接方式,在该种连接方式下,第一电子设备和第二电子设备可以通过其他连接方式传输信号,如,短距离无线通信技术。It should be noted that, in the embodiments of the present application, the contact between the first electronic device and the second electronic device means that the first electronic device and the second electronic device are in a contact-type connection. Wherein, the contact type connection may be a contact type connection capable of transmitting signals, such as electrical connection, magnetic connection and the like. The contact connection may also be a connection mode that cannot transmit signals. In this connection mode, the first electronic device and the second electronic device can transmit signals through other connection modes, such as short-range wireless communication technology.
可选的,本申请实施例中,第一电子设备控制地儿电子设备的第二扬声器开启可以通过以下两种方式实现:实现方式一,在第一电子设备与第二电子设备为能够传输信号的接触式连接的情况下,第一电子设备可以通过该接触式连接向第二电子设备发送控制开启第二扬声器的信息,以触发第二电子设备根据该信息控制第二扬声器的开启。实现方式二,在第一电子设备与第二电子设备为不能传输信号的接触式连接的情况下,第一电子设备和第二电子设备可以通过无线短距离通信技术进行连接(例如,无线蓝牙连接)之后,第一电子设备可以向第二电子设备发送控制开启第二扬声器的信息,第二电子设备可以根据接收到的该信息控制第二扬声器的开启。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, turning on the second speaker of the electronic device controlled by the first electronic device may be implemented in the following two ways: Implementation mode 1, when the first electronic device and the second electronic device are capable of transmitting signals. In the case of the contact connection, the first electronic device can send information for controlling the turning on of the second speaker to the second electronic device through the contact connection, so as to trigger the second electronic device to control the turning on of the second speaker according to the information. Implementation mode 2: In the case where the first electronic device and the second electronic device are in a contact connection that cannot transmit signals, the first electronic device and the second electronic device can be connected through a wireless short-range communication technology (for example, a wireless Bluetooth connection. ), the first electronic device may send information to control the turning on of the second speaker to the second electronic device, and the second electronic device may control the turning on of the second speaker according to the received information. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
需要说明的是,本申请下述实施例以上述实现方式二为例进行具体说明,而实现方式一可以参考相关技术实现,本申请实施例不再赘述。It should be noted that the following embodiments of the present application take the foregoing implementation manner 2 as an example for specific description, while the implementation manner 1 may be implemented with reference to related technologies, and details are not repeated in this embodiment of the present application.
本申请实施例提供一种扬声器控制放方法,在第一电子设备与第二电子设备接触的情况下,第一电子设备控制第一电子设备的第一扬声器和第二电子设备的第二扬声器开启。通过该方案,当第一电子设备和第二电子设备接触时,第一电子设备能够控制其自身的第一扬声器和第二电子设备的第二扬声器开启,由于第一扬声器和第二扬声器分别属于不同的电子设备,且两者的安装在不同电子设备的不同的位置,因此在通过第一扬声器和第二扬声器播放音频时,能够丰富音频的层次,产生立体声播放效果,从而提高电子设备播放音频的效果。An embodiment of the present application provides a method for controlling and amplifying a speaker. When a first electronic device is in contact with a second electronic device, the first electronic device controls the first speaker of the first electronic device and the second speaker of the second electronic device to turn on . Through this solution, when the first electronic device and the second electronic device are in contact, the first electronic device can control its own first speaker and the second speaker of the second electronic device to turn on, because the first speaker and the second speaker belong to Different electronic devices, and the two are installed in different positions of different electronic devices, so when audio is played through the first speaker and the second speaker, the audio level can be enriched and the stereo playback effect can be generated, thereby improving the audio playback of the electronic device. Effect.
可选的,结合图1,如图2所示,上述步骤101具体可以通过下述的步骤102和步骤103。Optionally, with reference to FIG. 1 , as shown in FIG. 2 , the foregoing step 101 may specifically pass through the following steps 102 and 103 .
步骤102、第一电子设备接收第二电子设备发送的指示信号。Step 102: The first electronic device receives an indication signal sent by the second electronic device.
其中,上述指示信号用于指示第一电子设备和第二电子设备接触。Wherein, the above-mentioned indication signal is used to indicate that the first electronic device and the second electronic device are in contact.
需要说明的是,本申请实施例中,第一电子设备和第二电子设备接触式连接,第一电子设备能够接收第二电子设备发送的指示信号,该指示信号用于指示第一电子设备和第二电子设备接触。It should be noted that, in the embodiment of the present application, the first electronic device and the second electronic device are connected in contact, and the first electronic device can receive an indication signal sent by the second electronic device, and the indication signal is used to indicate the first electronic device and the second electronic device. The second electronic device contacts.
可选的,本申请实施例中,第一电子设备和第二电子设备为磁连接方式接触,或为电连接方式接触。Optionally, in this embodiment of the present application, the first electronic device and the second electronic device are in contact in a magnetic connection manner, or in an electrical connection manner.
可选的,本申请实施例中,若第一电子设备和第二电子设备为磁连接方式接触,则具体连接方式可以为以下任一种方式:方式1,第一电子设备的壳体上设置有第一电磁装置(例如,电磁铁),第二电子设备中设置有第二电磁装置(例如,电磁传感器或电磁铁),在第一电磁装置和第二电磁装置磁连接的情况下,第一电子设备和第二电子设备磁连接接触。方式2,第一电子设备壳体设置有衔铁,第二电子设备中设置有第二电磁装置(例如,电磁传感器或电磁铁),在该第二电磁装置与该衔铁磁连接的情况下,第一电子设备和第二电子设备磁连接接触。方式3,第一电子设备壳体设置有第一电磁装置,第二电子设备中设置有衔铁,在该第以电磁装置与该衔铁磁连接的情况下,第一电子设备和第二电子设备磁连接接触。具体可以根据实际使用情况确定,本申请实施例不作具体限定。Optionally, in the embodiment of the present application, if the first electronic device and the second electronic device are in contact in a magnetic connection mode, the specific connection mode may be any of the following modes: Mode 1, the housing of the first electronic device is provided with There is a first electromagnetic device (for example, an electromagnet), and a second electromagnetic device (for example, an electromagnetic sensor or an electromagnet) is provided in the second electronic device. In the case where the first electromagnetic device and the second electromagnetic device are magnetically connected, the An electronic device and a second electronic device are in magnetic connection contact. Mode 2, the first electronic device housing is provided with an armature, the second electronic device is provided with a second electromagnetic device (for example, an electromagnetic sensor or an electromagnet), in the case that the second electromagnetic device is magnetically connected to the armature, the first An electronic device and a second electronic device are in magnetic connection contact. Mode 3, the first electronic device housing is provided with a first electromagnetic device, the second electronic device is provided with an armature, and in the case that the first electromagnetic device is magnetically connected to the armature, the first electronic device and the second electronic device are magnetically connected Connect the contacts. Specifically, it can be determined according to the actual use situation, and is not specifically limited in this embodiment of the present application.
需要说明的是,本申请实施例中,上述第一电子设备的壳体可以为可分离壳体,具体可以为,可分离的移动终端的壳体。例如,手机的可分离保护壳等。It should be noted that, in the embodiment of the present application, the casing of the first electronic device may be a detachable casing, and specifically, a casing of a detachable mobile terminal. For example, detachable protective cases for mobile phones, etc.
可选的,本申请实施例中,若第一电子设备和第二电子设备为电连接方式接触,则具体连接方式可以为以下任一种方式:方式1,第一电子设备具有数据接口,第二电子设备可通过该接口与第一电子设备电连接接触。方式2,第一电子设备上设置有小孔,该小孔内设置有接口和衔铁,在第二电子设备具有电磁装置的一端插入该第一电子设备壳体的小孔,第二电子设备磁吸固定于第一电子设备,第一电子设备可以通过该接口和第二电子设备电连接接触(此时,第一电子设备和第二电子设备也为磁连接接触)。具体可以根据实际使用情况确定,本申请实施例不作具体限定。Optionally, in the embodiment of the present application, if the first electronic device and the second electronic device are in contact in an electrical connection mode, the specific connection mode may be any of the following modes: mode 1, the first electronic device has a data interface, and the third electronic device has a data interface. The second electronic device can be electrically connected and contacted with the first electronic device through the interface. Mode 2, the first electronic device is provided with a small hole, the small hole is provided with an interface and an armature, and the end of the second electronic device with the electromagnetic device is inserted into the small hole of the first electronic device housing, the second electronic device magnetic The suction is fixed to the first electronic device, and the first electronic device can be electrically connected and contacted with the second electronic device through the interface (at this time, the first electronic device and the second electronic device are also in magnetic connection and contact). Specifically, it can be determined according to the actual use situation, and is not specifically limited in this embodiment of the present application.
此外,本申请实施例中,第一电子设备和第二电子设备的磁连接方式和电连接方式均可以插入式连接。In addition, in the embodiment of the present application, both the magnetic connection manner and the electrical connection manner of the first electronic device and the second electronic device may be plug-in connection.
可选的,本申请实施例中,在第一电子设备和第二电子设备连接的情况下,第二电子设备可以通过磁通信,有线通信或短距离无线通信技术向第一电子设备发送指示信号。其中,短距离无线通信技术可以包括以下至少一项:Hlilink协议,WIFI技术(即IEEE802.11协议),蓝牙技术(Bluetooth),近场通信技术(Near Field Communication,NFC),光保真技术(Light Fidelity,LiFi)等。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, when the first electronic device and the second electronic device are connected, the second electronic device may send an indication signal to the first electronic device through magnetic communication, wired communication, or short-range wireless communication technology. . The short-range wireless communication technology may include at least one of the following: Hlilink protocol, WIFI technology (ie IEEE802.11 protocol), Bluetooth technology (Bluetooth), Near Field Communication (NFC), optical fidelity technology ( Light Fidelity, LiFi), etc. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
需要说明的是,下述实施例中以第二电子设备与第一电子设备通过蓝牙技术发送指示信号为例进行示例性说明。具体的,在第一电子设备和第二电子设备可以磁连接接触的情况下,第二电子设备可以通过蓝牙技术发送指示信号,即,该磁连接接触可以作为发送指示信号的触发条件。It should be noted that, in the following embodiments, the second electronic device and the first electronic device send an indication signal through the Bluetooth technology as an example for illustrative description. Specifically, when the first electronic device and the second electronic device can be magnetically connected and contacted, the second electronic device can send an indication signal through Bluetooth technology, that is, the magnetically connected contact can be used as a trigger condition for sending the indication signal.
步骤103、第一电子设备根据指示信号,控制第一扬声器和第二扬声器开启。Step 103: The first electronic device controls the first speaker and the second speaker to turn on according to the instruction signal.
需要说明的是,本申请实施例中,上述第一扬声器为第一电子设备的外放扬声器,第二扬声器为第二电子设备的外放扬声器。其中,外放扬声器是指适用于外放模式的扬声器,这种扬声器通常情况下的外放功率可以为0.5W至5W(瓦)之间,例如,手机的外放扬声器。听筒扬声器是指适用于听筒模式的扬声器,多为体积较小的动圈式或动铁式扬声器,这种扬声器常情况下的功率为10mW至100mW(毫瓦)之间,例如,无线蓝牙耳机的扬声器。It should be noted that, in the embodiment of the present application, the first speaker is an external speaker of the first electronic device, and the second speaker is an external speaker of the second electronic device. The loudspeaker refers to a loudspeaker suitable for the loudspeaker mode, and the loudspeaker usually has a power of 0.5W to 5W (watts), for example, the loudspeaker of a mobile phone. Earpiece speakers refer to speakers suitable for earpiece mode, mostly small moving coil or moving iron speakers. The power of such speakers is usually between 10mW and 100mW (milliwatts), for example, wireless Bluetooth headsets speaker.
可选的,本申请实施例中,第二电子设备可能还包括适用于听筒模式的第三扬声器,本申请实施例对第三扬声器的开启状态或关闭状态不作具体限定。可以理解的是,在第三扬声器和第二扬声器同时开启是,由于第二扬声器的功率明显高于第三扬声器的功率,在播放音频时用户可能听不到第三扬声器的播放声音,仅听到第二扬声器的播放声音。Optionally, in the embodiment of the present application, the second electronic device may further include a third speaker suitable for the earpiece mode, and the embodiment of the present application does not specifically limit the on state or the off state of the third speaker. It can be understood that when the third speaker and the second speaker are turned on at the same time, since the power of the second speaker is significantly higher than that of the third speaker, the user may not hear the playback sound of the third speaker when playing audio, but only listen to the sound of the third speaker. playback sound to the second speaker.
可选的,本申请实施例中,第一电子设备根据指示信号,控制第一扬声器和第二扬声器开启的方式可以为以下任一方式:方式A,在第一电子设备和第二电子设备磁连接的情况下,第一电子设备控制第一扬声器开启,并可以通过该磁连接进行磁连接控制第二扬声器开启。方式B,在第一电子设备和第二电子设备电连接的情况下(有线电连接,例如通过数据线和接口),第一电子设备控制第一扬声器开启,并可以通过该电连接控制第二扬声器开启。方式C,在第一电子设备和第二电子设备无线连接的情况下(例如,蓝牙连接),第一电子设备控制第一扬声器开启,并可以通过无线通信技术向第二电子设备发送控制信号,以控制第二电子设备开启第二扬声器(具体可以参考下述步骤102a中的相关描述)。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the first electronic device controls the turning on of the first speaker and the second speaker according to the instruction signal in any of the following ways: Mode A, when the first electronic device and the second electronic device are magnetically In the case of connection, the first electronic device controls the opening of the first speaker, and can control the opening of the second speaker through the magnetic connection through the magnetic connection. Mode B, when the first electronic device and the second electronic device are electrically connected (wired electrical connection, such as through a data cable and an interface), the first electronic device controls the first speaker to turn on, and can control the second electronic device through the electrical connection The speaker is on. Mode C, when the first electronic device and the second electronic device are wirelessly connected (for example, Bluetooth connection), the first electronic device controls the first speaker to be turned on, and can send a control signal to the second electronic device through a wireless communication technology, To control the second electronic device to turn on the second speaker (for details, please refer to the relevant description in the following step 102a). Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
可选的,结合图2,如图3所示,上述步骤103具体可以通过下述步骤103a实现。Optionally, with reference to FIG. 2 , as shown in FIG. 3 , the foregoing step 103 may be specifically implemented by the following step 103 a.
步骤103a、第一电子设备根据指示信号,向第二电子设备发送控制信号。Step 103a: The first electronic device sends a control signal to the second electronic device according to the instruction signal.
其中,上述控制信号用于控制第二电子设备开启第二扬声器。Wherein, the above-mentioned control signal is used to control the second electronic device to turn on the second speaker.
可选的,本申请实施例中,在第一电子设备接收到指示信号之后,第一电子设备根据该指示信号生成控制信号,并向第电子设备发送该控制信号。Optionally, in this embodiment of the present application, after the first electronic device receives the indication signal, the first electronic device generates a control signal according to the indication signal, and sends the control signal to the first electronic device.
可选的,本申请实施例中,上述根据该指示信号生成控制信号的方式,具体可以为,第一电子设备读取该指示信号(该指示信号具体可以包括用于指示第一电子设备和第二电子设备连接的信息,以及第一电子设备和第二电子设备的连接稳定性的信息),并判断该指示信号中包括的稳定性信息是否满足第一条件。在满足第一条件的情况下,第一电子设备根据该指示信号生成控制信号;在不满足第一条件的情况下,第一电子设备继续接受指示信号进行判断。其中,该第一条件用于判断第一电子设备和第二电子设备连接的稳定程度,在该稳定程度具体可以使用信号损耗参数,信号衰减参数,信号传输的丢包率等表示。Optionally, in this embodiment of the present application, the above-mentioned manner of generating the control signal according to the indication signal may specifically be that the first electronic device reads the indication signal (specifically, the indication signal may include instructions for indicating the first electronic device and the first electronic device). information on the connection between the two electronic devices, and information on the connection stability of the first electronic device and the second electronic device), and determine whether the stability information included in the indication signal satisfies the first condition. If the first condition is satisfied, the first electronic device generates a control signal according to the indication signal; if the first condition is not satisfied, the first electronic device continues to accept the indication signal for judgment. The first condition is used to determine the stability of the connection between the first electronic device and the second electronic device, and the stability can be specifically represented by a signal loss parameter, a signal attenuation parameter, a packet loss rate of signal transmission, and the like.
可以理解的是,由于第一电子设备可以根据指示信号,向第二电子设备发送用于控制开启第二扬声器的控制信号,因此,第二电子设备可以根据接收到的控制信号控制第二扬声器开启。如此,在播放音频时,能够使得第一扬声器和第二扬声器同时播放该音频,形成立体声播放效果,从而提到电子设备的音频播放效果,进而提高用户的使用体验。It can be understood that, since the first electronic device can send a control signal for controlling the turning on of the second speaker to the second electronic device according to the instruction signal, the second electronic device can control the turning on of the second speaker according to the received control signal. . In this way, when the audio is played, the first speaker and the second speaker can simultaneously play the audio to form a stereo playback effect, thereby improving the audio playback effect of the electronic device, thereby improving the user experience.
可选的,在步骤103之后,本申请实施例所提供的扬声器控制方法还包括下述步骤104。Optionally, after step 103, the speaker control method provided by the embodiment of the present application further includes the following step 104.
步骤104、通过第一扬声器和第二扬声器输出音频信号。Step 104 , output the audio signal through the first speaker and the second speaker.
需要说明的是,通过第一扬声器和第二扬声器输出音频信号,是指第一电子设备通过第一扬声器,第二电子设备通过第二扬声器一起输出音频信号。It should be noted that outputting the audio signal through the first speaker and the second speaker means that the first electronic device outputs the audio signal through the first speaker and the second electronic device outputs the audio signal through the second speaker together.
具体的,在第一电子设备播放音频的情况下,第一电子设备通过第一扬声器播放该音频,第二电子设备通过第二扬声器也播放该音频。由于两个扬声器的分布位置不同,因此用户可以听到两个播放器空间分布的播放声音,即形成立体声播放效果。Specifically, when the first electronic device plays audio, the first electronic device plays the audio through the first speaker, and the second electronic device also plays the audio through the second speaker. Since the distribution positions of the two speakers are different, the user can hear the playing sounds spatially distributed by the two players, that is, a stereo playback effect is formed.
可以理解的是,由于电子设备可以同时使用第一扬声器和第二扬声器播放该音频,从而形成立体声播放效果,进而提到电子设备的音频播放效果。It can be understood that, since the electronic device can use the first speaker and the second speaker to play the audio at the same time, a stereo playback effect is formed, and the audio playback effect of the electronic device is further mentioned.
需要说明的是,下述实施例以第一电子设备和第二电子设备蓝牙连接为例进行示例性说明。It should be noted that, the following embodiments take the Bluetooth connection between the first electronic device and the second electronic device as an example for illustrative description.
示例性的,图4为一种操作第一电子设备和第二电子设备连接的示意图。假设第一电子设备001的顶部设置有衔铁,第二电子设备002的一端设置有电磁传感器(可以参考实施例3中的电磁传感器),且该电磁传感器可以磁吸于该衔铁。第一电子设备001与第二电子设备002为蓝牙连接。如图4所示,当第二电子设备002的一端与第一电子设备001的顶部磁吸连接的情况下,第二电子设备002通过蓝牙向第一电子设备001发送指示第一电子设备001和第二电子设备002接触的指示信号。第一电子设备001接收该指示信号控制第一电子设备的第一扬声器003开启,并通过蓝牙向第二电子设备002发送控制信息,以控制第二电子设备002的第二扬声器004开启。如此,第一扬声器003和第二扬声器004可以同时以外放模式播放音频。Exemplarily, FIG. 4 is a schematic diagram of operating the connection between the first electronic device and the second electronic device. It is assumed that the top of the first
可以理解的是,第一电子设备可以接收第二电子设备发送的用于指示第一电子设备和第二电子设备接触的指示信号,并根据该指示信号,控制第一电子设备的第一扬声器和第二电子设备的第二扬声器开启。通过该方案,由于第一扬声器和第二扬声器的安装位置不同,因此在通过第一扬声器和第二扬声器同时开启,并播放音频时,能够丰富音频的层次,产生立体声播放效果,从而提高电子设备播放音频的效果。It can be understood that the first electronic device can receive an instruction signal sent by the second electronic device to indicate that the first electronic device and the second electronic device are in contact, and control the first speaker and the first speaker of the first electronic device according to the instruction signal. The second speaker of the second electronic device is turned on. With this solution, since the installation positions of the first speaker and the second speaker are different, when the first speaker and the second speaker are turned on at the same time and audio is played, the level of the audio can be enriched, and a stereo playback effect can be produced, thereby improving the electronic equipment. The effect of playing audio.
可选的,结合图2,如图5所示,在步骤102之后,且步骤103之前,本申请实施例所提供的扬声器控制方法还包括下述步骤105和步骤106,相应的,步骤103具体可以通过下述步骤103b实现。Optionally, with reference to FIG. 2 , as shown in FIG. 5 , after step 102 and before step 103 , the speaker control method provided by this embodiment of the present application further includes the following steps 105 and 106 . Correspondingly, step 103 is specifically This can be achieved through the following step 103b.
步骤105、第一电子设备显示目标提示信息。Step 105: The first electronic device displays target prompt information.
其中,上述目标提示信息用于提示用户是否开启立体声播放。The above target prompt information is used to prompt the user whether to enable stereo playback.
可选的,本申请实施例中,上述目标提示信息用于提示用户是否开启立体声播放。具体的,该目标提示信息可以为以下至少一项:提示开启立体声播放的文字信息,提示开启立体声播放的图片,提示开启立体声播放的动画等。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the above target prompt information is used to prompt the user whether to enable stereo playback. Specifically, the target prompt information may be at least one of the following: text information prompting to turn on stereo playback, pictures prompting to turn on stereo playback, animation prompting to turn on stereo playback, and the like. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
可选的,本申请实施例中,第一电子设备可以突出显示目标提示信息,具体的,在第一电子设备显示目标提示信息的情况下,第一电子设可以输出提示音频,以提示用户观看该目标提示信息;第一电子设也可以输出振动信息以提示用户观看该目标提示信息;第一电子设备还可以突出显示提示标识(例如,感叹号标识等)以提示用户观看该目标提示信息。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the first electronic device may highlight the target prompt information. Specifically, when the first electronic device displays the target prompt information, the first electronic device may output prompt audio to prompt the user to watch the information. The target prompt information; the first electronic device can also output vibration information to prompt the user to watch the target prompt information; the first electronic device can also highlight a prompt mark (eg, an exclamation mark, etc.) to prompt the user to watch the target prompt information. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
步骤106、第一电子设备接收对该目标提示信息的第一输入。Step 106: The first electronic device receives a first input of the target prompt information.
可选的,本申请实施例中,上述第一输入用于选择目标指示信息,或者选中目标指示信息中的虚拟按键。具体的,该第一输入可以为用户对目标指示信息,或目标指示信息中的虚拟按键的触控输入。其中,该触控输入可以为以下任一项:单击输入,双击输入,长按输入,沿预设轨迹的拖动输入等。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the above-mentioned first input is used to select target indication information, or to select a virtual key in the target indication information. Specifically, the first input may be a user's touch input to the target indication information or a virtual key in the target indication information. The touch input may be any of the following: single-click input, double-click input, long-press input, drag input along a preset track, and the like. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
可选的,本申请实施例中,上述目标提示信息可以包括至少一个虚拟按键,该虚拟按键可以对应不同的功能,用户可以针对不同虚拟按键的输入,触发第一电子设备执行不同的操作。Optionally, in this embodiment of the present application, the above-mentioned target prompt information may include at least one virtual key, the virtual key may correspond to different functions, and the user may trigger the first electronic device to perform different operations according to the input of different virtual keys.
示例性的,假设目标提示信息包括:“开启”虚拟按键和“关闭”虚拟按键,该“开启”虚拟按键用于触发电子设备开启立体声模式(即打开第一扬声器和第二扬声器的模式),该“取消”虚拟按键用于触发电子设备关闭立体声模式(即关闭第一扬声器和第二扬声器的模式)。如果用户单击该“启动”虚拟按键,电子设备响应于该单击输入(即第一输入),打开第一扬声器和第二扬声器的模式,以启动立体声模式。Exemplarily, it is assumed that the target prompt information includes: an "on" virtual key and a "off" virtual key, the "on" virtual key is used to trigger the electronic device to turn on the stereo mode (that is, the mode in which the first speaker and the second speaker are turned on), The "Cancel" virtual key is used to trigger the electronic device to turn off the stereo mode (ie, the mode in which the first speaker and the second speaker are turned off). If the user clicks the "enable" virtual key, the electronic device turns on the modes of the first speaker and the second speaker in response to the click input (ie, the first input) to enable the stereo mode.
步骤103b、第一电子设备响应于第一输入,根据指示信号,控制第一扬声器和第二扬声器开启。Step 103b, the first electronic device controls the first speaker and the second speaker to turn on according to the instruction signal in response to the first input.
需要说明的是,根据指示信号,控制第一扬声器和第二扬声器开启的方式可以参考上述步骤102和步骤102a中的相关描述,此处不再赘述。It should be noted that, according to the instruction signal, the manner of controlling the turning on of the first speaker and the second speaker may refer to the relevant descriptions in the above-mentioned steps 102 and 102a, which will not be repeated here.
示例性的,图6为一种电子设备开启扬声器的用户操作的示意图。假设第一电子设备001的顶部设置有衔铁,第二电子设备002的一端设置有电磁传感器,且该电磁传感器可以磁吸于该衔铁。第一电子设备001与第二电子设备002为蓝牙连接。当第二电子设备002的一端与第一电子设备001的顶部磁吸连接的情况下,第二电子设备002通过蓝牙向第一电子设备001发送指示第一电子设备001和第二电子设备002接触的指示信号。第一电子设备001接收该指示信号,如图6所示,显示提示信息005(即,目标提示信息),用户可以单击该提示信息005中的“开启”,触发第一电子设备001开启第一扬声器003,并通过蓝牙向第二电子设备002发送控制信息,以控制第二电子设备002的第二扬声器004开启。如此,第一扬声器003和第二扬声器004可以同时以外放模式播放音频,即开启了立体声模式。Exemplarily, FIG. 6 is a schematic diagram of a user operation of turning on a speaker of an electronic device. It is assumed that the top of the first
可以理解的是,在第一电子设备接收到第二电子设备发送的指示信号之后,第一电子设备可以显示用于提示用户是否开启立体声播放的目标提示信息,进而用户可以通过对该目标提示信息的输入,控制第一扬声器和第二扬声器的开启。如此,用户可以根据实际使用需求选择是否开启立体声播放,从而提高人机交互性能,方便用户使用,进而提高用户的使用体验。It can be understood that, after the first electronic device receives the indication signal sent by the second electronic device, the first electronic device can display the target prompt information for prompting the user whether to turn on the stereo playback, and then the user can pass the target prompt information through the target prompt information. input to control the opening of the first speaker and the second speaker. In this way, the user can choose whether to enable stereo playback according to actual usage requirements, thereby improving the human-computer interaction performance, facilitating the user's use, and further improving the user's use experience.
可选的,结合图2,如图7所示,在步骤103之后,本申请实施例所提供的扬声器控制方法还包括下述步骤107。Optionally, with reference to FIG. 2 , as shown in FIG. 7 , after step 103 , the speaker control method provided by this embodiment of the present application further includes the following step 107 .
步骤107、第一电子设备根据目标信息,调整目标扬声器的输出参数。Step 107: The first electronic device adjusts the output parameters of the target speaker according to the target information.
其中,上述目标信息为用户的输入或第一电子设备当前的使用状态,该目标扬声器为第一扬声器和/或第二扬声器。Wherein, the above target information is the user's input or the current use state of the first electronic device, and the target speaker is the first speaker and/or the second speaker.
可选的,本申请实施例中,上述目标扬声器的输出参数可以包括以下至少一项:扬声器的音量参数,扬声器的延时参数,扬声器的模式参数等。其中,该扬声器的音量参数用于控制扬声器的输出音量;该扬声器的延时参数用于控制扬声器输出音频时的延时;该扬声器的模式参数用于确定扬声器的播放模式,具体可以根据实际使用需求进行设置,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the output parameter of the target speaker may include at least one of the following: a volume parameter of the speaker, a delay parameter of the speaker, a mode parameter of the speaker, and the like. Among them, the volume parameter of the speaker is used to control the output volume of the speaker; the delay parameter of the speaker is used to control the delay when the speaker outputs audio; the mode parameter of the speaker is used to determine the playback mode of the speaker, which can be used according to actual use. Set according to requirements, which is not specifically limited in this embodiment of the present application.
示例性的,假设扬声器的音量设置有以下五档,该扬声器的音量参数可以从这五档中选择具体的音量档位,例如,三挡。该播放模式可以包括:低音播放模式,回音播放模式,摇滚播放模式等。Exemplarily, it is assumed that the volume of the speaker is set to the following five levels, and the volume parameter of the speaker can select a specific volume level from the five levels, for example, the third level. The play mode may include: a bass play mode, an echo play mode, a rock play mode, and the like.
可选的,本申请实施例中,上述第一电子设备根据目标信息,调整目标扬声器的输出参数的方法具体可以通过以下两种方式实现:Optionally, in this embodiment of the present application, the method for adjusting the output parameters of the target speaker according to the target information by the first electronic device may be implemented in the following two ways:
方式一method one
可选的,本申请实施例中,在第一电子设备根据指示信号,控制第一扬声器和第二扬声器开启之后,第一电子设备可以显示目标控件,该目标控件包括多个控件项,每个控件项用于控制扬声器的一项输出参数。然后,第一电子设备可以根据用户对该目标控件的第一目标输入(即该第一目标输入包括目标信息。例如,目标信息可以为第一目标输入之后的多个控件项的参数),调整目标扬声器的输出参数。其中,该第一目标输入用于调整目标控件中的多个控件项的参数,示例性的,该第一目标输入可以为用户设置多个控件项参数的输入。Optionally, in this embodiment of the present application, after the first electronic device controls the first speaker and the second speaker to turn on according to the instruction signal, the first electronic device may display a target control, where the target control includes a plurality of control items, each A control item is used to control an output parameter of the speaker. Then, the first electronic device can adjust the user's first target input to the target control (that is, the first target input includes target information. For example, the target information can be parameters of a plurality of control items after the first target input). The output parameters of the target speaker. Wherein, the first target input is used to adjust parameters of a plurality of control items in the target control. Exemplarily, the first target input may be an input for a user to set parameters of a plurality of control items.
示例性的,假设在第一扬声器和第二扬声器开启之后,第一电子设备显示目标控件,该目标控件包括音量参数控件项和延时参数控件项。用户可以通过音量参数控件项手动设置该音量参数为三挡,并通过延时参数控件项手动设置该延时参数为1.5秒,第一电子设备可以响应于该用户的手动设置操作(即包括目标信息的第一目标输入),将扬声器的输出参数中的音量参数设置为三挡和延时参数为1.5秒。Exemplarily, it is assumed that after the first speaker and the second speaker are turned on, the first electronic device displays a target control, where the target control includes a volume parameter control item and a delay parameter control item. The user can manually set the volume parameter to the third gear through the volume parameter control item, and manually set the delay parameter to 1.5 seconds through the delay parameter control item, and the first electronic device can respond to the user's manual setting operation (that is, including the target. The first target input of the information), set the volume parameter in the output parameters of the speaker to the third gear and the delay parameter to 1.5 seconds.
方式二Method 2
可选的,本申请实施例中,第一电子设备根据当前的使用状态,自动调整目标扬声器的输出参数。Optionally, in this embodiment of the present application, the first electronic device automatically adjusts the output parameters of the target speaker according to the current usage state.
需要说明的是,本申请实施例中,上述当前的使用状态具体是指当前第一电子设备的使用场景,当前正在运行的应用程序等。其中,该当前的使用场景可以为以下任一项:游戏场景,音乐场景,视频场景和通话场景等。具体可以根据实际使用需求进行设置,本申请实施例不作具体限定。It should be noted that, in this embodiment of the present application, the above-mentioned current usage state specifically refers to the current usage scenario of the first electronic device, the currently running application program, and the like. The current usage scenario may be any of the following: a game scenario, a music scenario, a video scenario, a call scenario, and the like. Specifically, settings may be made according to actual usage requirements, which are not specifically limited in this embodiment of the present application.
可选的,在第一电子设备的当前使用场景为游戏场景的情况下,第一电子设备可以识别游戏画面中的目标主体占显示画面的比例,自动调整目标扬声器的输出参数。其中,该目标主体可以用户在游戏中的人物角色,操作的车辆等。Optionally, when the current usage scene of the first electronic device is a game scene, the first electronic device may identify the proportion of the target subject in the game screen to the display screen, and automatically adjust the output parameters of the target speaker. Wherein, the target subject may be the character of the user in the game, the vehicle operated by the user, and the like.
示例性的,以目标扬声器的输出参数为音量参数为例进行示例性说明。假设用户当前显示的游戏界面为赛车游戏的界面,用户操作游戏画面中的5辆赛车中的赛车A,在游戏显示的画面中,当赛车A在该显示画面中的占比小于20%时,第一扬声器的音量参数为一档;当赛车A在该显示画面中的占比小于40%,且大于20%时,第一扬声器的音量参数为二档;当赛车A在该显示画面中的占比小于60%,且大于40%时,第一扬声器的音量参数为三档;当赛车A在该显示画面中的占比小于80%,且大于60%时,第一扬声器的音量参数为四档;当赛车A在该显示画面中的占比大于80%时,第一扬声器的音量参数为五档。如此,随着赛车在显示画面中的占比的数值变化,第一电子设备对应调整目标扬声器的输出音量。Illustratively, the output parameter of the target speaker is the volume parameter as an example for illustrative description. Assuming that the game interface currently displayed by the user is the interface of the racing game, the user operates the racing car A among the 5 racing cars in the game screen. The volume parameter of the first speaker is level 1; when the proportion of racing car A in the display screen is less than 40% and greater than 20%, the volume parameter of the first speaker is level 2; When the proportion is less than 60% and greater than 40%, the volume parameter of the first speaker is the third gear; when the proportion of car A in the display screen is less than 80% and greater than 60%, the volume parameter of the first speaker is Fourth gear; when the proportion of racing car A in the display screen is greater than 80%, the volume parameter of the first speaker is fifth gear. In this way, as the proportion of the racing car in the display screen changes, the first electronic device adjusts the output volume of the target speaker accordingly.
可选的,在第一电子设备的当前使用场景为音乐场景的情况下,第一电子设备可以识别当前播放的音乐类型,自动调整目标扬声器的输出参数。其中,该音乐类型包括:轻音乐,流行音乐,名族音乐,摇滚音乐,美声音乐等。具体可以根据实际使用需求进行设置,本申请实施例不作具体限定。Optionally, when the current usage scene of the first electronic device is a music scene, the first electronic device may identify the currently playing music type, and automatically adjust the output parameters of the target speaker. Among them, the music types include: light music, pop music, ethnic music, rock music, bel canto music, etc. Specifically, settings may be made according to actual usage requirements, which are not specifically limited in this embodiment of the present application.
示例性的,以目标扬声器的输出参数为音量参数为例进行示例性说明。若当前播放为轻音乐,则第一电子设备对应调整目标扬声器的输出音量为一档;若当前播放为流行音乐,则第一电子设备对应调整目标扬声器的输出音量为三档;若当前播放为摇滚音乐,则第一电子设备对应调整目标扬声器的输出音量为五档。Illustratively, the output parameter of the target speaker is the volume parameter as an example for illustrative description. If the current playback is light music, the first electronic device correspondingly adjusts the output volume of the target speaker to one level; if the current playback is pop music, the first electronic device correspondingly adjusts the output volume of the target speaker to three levels; if the current playback is rock music, the first electronic device correspondingly adjusts the output volume of the target speaker to five levels.
可选的,在第一电子设备的当前使用场景为视频场景或通话场景的情况下,第一电子设备可以根据用户预设的输出参数,调整该目标扬声器的输出参数进行输出。Optionally, when the current usage scene of the first electronic device is a video scene or a call scene, the first electronic device may adjust the output parameters of the target speaker to output according to the output parameters preset by the user.
可选的,本申请实施例中,在上述各个场景切换使用的情况下,以当前使用的场景为准,采取对应的调整方式调整目标扬声器的输出参数,进行输出。Optionally, in this embodiment of the present application, when the above scenarios are switched and used, the output parameters of the target speaker are adjusted in a corresponding adjustment manner based on the currently used scenario for output.
示例性的,假设当前第一电子设备的使用场景为音乐场景,第一电子设备可以识别当前播放的音乐为摇滚音乐,相应的第一电子设备调整目标扬声器的输出音量为五档。而此时,电子设备有一个来电接入,当用户接听该来电,第一电子设备切换为通话场景对应的目标扬声器的音量,例如,三档。如此可以使得目标扬声器的输入参数与当前的场景适应。Exemplarily, assuming that the current usage scene of the first electronic device is a music scene, the first electronic device can identify the currently playing music as rock music, and the corresponding first electronic device adjusts the output volume of the target speaker to five levels. At this time, the electronic device has an incoming call, and when the user answers the incoming call, the first electronic device switches to the volume of the target speaker corresponding to the call scene, for example, the third level. In this way, the input parameters of the target speaker can be adapted to the current scene.
可以理解的是,第一电子设备可以根据用户输入或者第一电子设备当前的使用状态,调整目标扬声器的输出参数,使得目标扬声器的输入参数与当前的使用场景或用户的需求相适应。如此方便用户使用立体声模式,提高用户的使用体验。It can be understood that the first electronic device can adjust the output parameters of the target speaker according to the user input or the current usage state of the first electronic device, so that the input parameters of the target speaker are adapted to the current usage scenario or the user's needs. It is convenient for the user to use the stereo mode, and the user experience is improved.
可选的,本申请实施例中,第二扬声器为定向扬声器,在步骤103之后,本申请实施例提供的扬声器控制方法还可以包括下述步骤108和步骤109。Optionally, in this embodiment of the present application, the second speaker is a directional speaker. After step 103 , the speaker control method provided in this embodiment of the present application may further include the following steps 108 and 109 .
步骤108、第一电子设备接收第二输入。Step 108: The first electronic device receives the second input.
其中,上述第二输入为调整第二电子设备与第一电子设备相对位置的输入;Wherein, the above-mentioned second input is an input for adjusting the relative position of the second electronic device and the first electronic device;
需要说明的是,本申请实施例中,上述第二输入用于调整第二电子设备与第一电子设备的相对位置。具体的,该第二输入可以为对第一电子设备的输入,例如,用户调整第一电子设备的位置;该第二输入也可以为对第二电子设备的输入,例如,用户调整第二电子设备的位置;该第二输入还可以为同时对第一电子设备和第二电子设备的输入,例如,用户同时调整第一电子设备和第二电子设备的位置,使得第一电子设备和第二电子设备相对位置发生变化。It should be noted that, in the embodiment of the present application, the above-mentioned second input is used to adjust the relative position of the second electronic device and the first electronic device. Specifically, the second input may be an input to the first electronic device, for example, the user adjusts the position of the first electronic device; the second input may also be an input to the second electronic device, for example, the user adjusts the second electronic device The position of the device; the second input can also be an input to the first electronic device and the second electronic device at the same time, for example, the user adjusts the positions of the first electronic device and the second electronic device at the same time, so that the first electronic device and the second electronic device The relative position of the electronic device changes.
可选的,本申请实施例中,上述第二输入具体可以为以下任一项:改变电子设备的朝向,移动电子设备的位置,同时改变电电子设备的位置和朝向等,具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the above-mentioned second input may specifically be any of the following: changing the orientation of the electronic device, moving the position of the electronic device, and simultaneously changing the position and orientation of the electronic device, etc. The requirements are determined, which is not specifically limited in the embodiments of the present application.
需要说明的是,本申请实施例中,上述第二扬声器为定向扬声器,该定向扬声器用于向某一特定方向输出音频。当第二电子设备的位置发生变化,使得第一电子设备和第二电子设备之间的相对位置发生变化的情况下,第二电子设备输出音频的方向也发生变化。It should be noted that, in the embodiment of the present application, the above-mentioned second speaker is a directional speaker, and the directional speaker is used to output audio in a specific direction. When the position of the second electronic device changes, so that the relative position between the first electronic device and the second electronic device changes, the direction of the audio output from the second electronic device also changes.
步骤109、第一电子设备响应于第二输入,调整第二电子设备输出音频的方向。Step 109: The first electronic device adjusts the direction of the audio output by the second electronic device in response to the second input.
需要说明的是,第一电子设备可以控制第二电子设备中第二扬声器输出音频的方向。具体的,第一电子设备调整该定向扬声器(即第二扬声器)的输出参数,以改变第二扬声器输出音频的方向;或者,在第二输入改变第二扬声器的相对位置的情况下(例如,改变第二扬声器的朝向或改变第二扬声器的位置),第二扬声器的输出音频的方向发生改变。It should be noted that the first electronic device can control the direction of the audio output from the second speaker in the second electronic device. Specifically, the first electronic device adjusts the output parameters of the directional speaker (ie, the second speaker) to change the direction of the audio output from the second speaker; or, in the case where the second input changes the relative position of the second speaker (for example, Change the orientation of the second speaker or change the position of the second speaker), the direction of the output audio of the second speaker changes.
可选的,本申请实施例中,用户可以根据使用需求,可以同时调整第二扬声器的相对位置和第二扬声器的输出参数,以改变该第二扬声器输出音频的方向。Optionally, in this embodiment of the present application, the user may adjust the relative position of the second speaker and the output parameters of the second speaker at the same time according to usage requirements, so as to change the direction of the audio output by the second speaker.
可以理解的是,用户可以根据实际使用需求调整第一扬声器和第二扬声器之间的相对位置与,以改变第二扬声器的音频输出方向,从而使得输出的立体声效果更加明显,更加符合用户需求,进而提升用户的使用体验。It can be understood that the user can adjust the relative position between the first speaker and the second speaker according to the actual use requirements, so as to change the audio output direction of the second speaker, so that the output stereo effect is more obvious and more in line with user needs. In order to improve the user experience.
实施例2Example 2
本申请实施例提供一种扬声器控制方法,应用于第二电子设备,该方法可以包括下述的步骤301。An embodiment of the present application provides a speaker control method, which is applied to a second electronic device, and the method may include the following step 301 .
步骤301、在第一电子设备与第二电子设备接触的情况下,第二电子设备向第一电子设备发送指示信号。Step 301: When the first electronic device is in contact with the second electronic device, the second electronic device sends an indication signal to the first electronic device.
其中,上述指示信号用于指示第一电子设备和第二电子设备接触。Wherein, the above-mentioned indication signal is used to indicate that the first electronic device and the second electronic device are in contact.
需要说明的是,本申请实施例中,对第一电子设备,第二电子设备和指示信号的描述具体可以参考上述步骤101中的相关描述,此处不再赘述。It should be noted that, in this embodiment of the present application, for the description of the first electronic device, the second electronic device and the indication signal, reference may be made to the relevant description in the foregoing step 101, and details are not repeated here.
可选的,本申请实施例中,在步骤301之后,本申请实施例所提供的扬声器控制方法还可以包括下述步骤302。Optionally, in this embodiment of the present application, after step 301, the speaker control method provided by the embodiment of the present application may further include the following step 302.
步骤302、第二电子设备接收第一电子设备发送的控制信号。Step 302: The second electronic device receives the control signal sent by the first electronic device.
其中,上述控制信号用于控制第二电子设备开启第二扬声器。Wherein, the above-mentioned control signal is used to control the second electronic device to turn on the second speaker.
需要说明的是,本申请实施例中,控制信号的描述具体可以参考上述步骤102和步骤102a中的相关描述,此处不再赘述。It should be noted that, in this embodiment of the present application, for the description of the control signal, reference may be made to the relevant descriptions in the foregoing step 102 and step 102a, and details are not repeated here.
可选的,本申请实施例中,第二电子设备可以根据该控制信号,通过第二电子设备的控制模块控制第二扬声器的开启。Optionally, in this embodiment of the present application, the second electronic device may control the turning on of the second speaker through the control module of the second electronic device according to the control signal.
本申请提供一种扬声器控制方法,在第一电子设备与第二电子设备接触的情况下,第二电子设备向第一电子设备发送用于指示第一电子设备和第二电子设备接触的指示信号。然后,第二电子设备接收第一电子设备发送的控制信号,控制第二扬声器开启。如此,可以根据实际使用需求控制开启第二扬声器,从而提高播放音频的效果。The present application provides a method for controlling a speaker. When a first electronic device is in contact with a second electronic device, the second electronic device sends an indication signal to the first electronic device for indicating that the first electronic device and the second electronic device are in contact . Then, the second electronic device receives the control signal sent by the first electronic device, and controls the second speaker to be turned on. In this way, the second speaker can be controlled to be turned on according to actual usage requirements, thereby improving the effect of playing audio.
实施例3Example 3
如图8所示,本申请实施例提供一种耳机800,该耳机包括:控制模块801,以及与控制模块801连接的第二扬声器802、第三扬声器803和电磁传感器804,第二扬声器802为外放扬声器,第三扬声器803为听筒扬声器。As shown in FIG. 8 , an embodiment of the present application provides an
控制模块801,用于在电磁传感器804检测到耳机800和电子设备接触的情况下,向电子设备发送指示信号,并接收电子设备发送的控制信号,以及根据控制信号控制第二扬声器802开启。The
其中,上述指示信号用于指示耳机800和电子设备接触。Wherein, the above-mentioned indication signal is used to indicate that the
可选的,本申请实施例中,上述耳机800可以为实施例1中的第二电子设备。具体的,该耳机800可以为蓝牙耳机,即该耳机和可以与电子设备(例如,上述第一电子设备)通过蓝牙进行连接,以相互传输指示信号和控制信号。Optionally, in this embodiment of the present application, the foregoing
需要说明的是,本申请实施例中,在耳机800中,第二扬声器802为外放扬声器,第三扬声器803为听筒扬声器,在第二扬声器和电子设备的第一扬声器同时开启的情况下,进入立体声模式。此时,第三扬声器的是否开启本申请不作具体限定。It should be noted that, in the embodiment of the present application, in the
此外,关于第二扬声器的外放模式和第三扬声器的听筒模式的描述可以参考实施例1中的步骤103中的相关描述,此处不再赘述。In addition, for the description of the external playback mode of the second speaker and the earpiece mode of the third speaker, reference may be made to the relevant description in step 103 in Embodiment 1, and details are not repeated here.
可选的,本申请实施例中,上述控制模块具体可以包括:收发模块和处理模块,其中,该收发模块,具体可以用于向电子设备发送指示信号,并接收电子设备发送的控制信号。例如,该收发模块可以为蓝牙收发模块。该处理模块,具体可以用于根据接收到的控制信号,控制第二扬声器开启。具体可以根据实际使用需求进行确定,本申请实施例不作具体限定。Optionally, in this embodiment of the present application, the above-mentioned control module may specifically include: a transceiver module and a processing module, wherein the transceiver module may specifically be used to send an instruction signal to an electronic device and receive a control signal sent by the electronic device. For example, the transceiver module may be a Bluetooth transceiver module. The processing module can specifically be used to control the second speaker to be turned on according to the received control signal. Specifically, it can be determined according to actual usage requirements, which is not specifically limited in the embodiments of the present application.
需要说明的是,本申请实施例中,上述电磁传感器可根据具体使用需求进行替换,本申请不作具体限定。上述电磁传感器仅为实现该功能的一种优选方式。例如,将电磁传感器替换为压力传感器,在耳机与电子设别接触压力大于预设数值的情况下,确定耳机与电子设备接触,并向电子设备发送指示信号。再例如,将电磁传感器替换为红外传感器,在耳机与电子设别处于预设位置的情况下,确定耳机与电子设备接触,并向电子设备发送指示信号。It should be noted that, in the embodiments of the present application, the above electromagnetic sensors may be replaced according to specific usage requirements, which are not specifically limited in the present application. The above electromagnetic sensor is only a preferred way to realize this function. For example, the electromagnetic sensor is replaced with a pressure sensor, and when the contact pressure between the earphone and the electronic device is greater than a preset value, it is determined that the earphone is in contact with the electronic device, and an indication signal is sent to the electronic device. For another example, the electromagnetic sensor is replaced with an infrared sensor, and when the earphone and the electronic device are in preset positions, it is determined that the earphone is in contact with the electronic device, and an indication signal is sent to the electronic device.
示例性的,如图8所示,假设耳机800为蓝牙耳机,耳机800与一个电子设备已建立蓝牙连接,默认设置为电子设备听筒模式,耳机开启第三扬声器803。当耳机800中的电磁传感器804检测到耳机800和电子设备接触时,电磁传感器804向控制模块801发送第一目标信息,该第一目标信息用于指示耳机800和电子设备接触。控制模块801通过蓝牙连接向电子设备发送用于指示耳机800和电子设备接触的指示信号,电子设备接收到该指示信号后,向耳机800发送控制信号。控制模块801接收该控制信号,并根据该控制信号开启第二扬声器802。此时,耳机800可以通过第二扬声器802以外放模式输出音频。Exemplarily, as shown in FIG. 8 , assuming that the
本申请提供一种耳机,该耳机包括:控制模块,以及与控制模块连接的第二扬声器、第三扬声器和电磁传感器,第二扬声器为外放扬声器,第三扬声器为听筒扬声器。在电磁传感器检测到耳机和电子设备接触的情况下,该控制模块向电子设备发送指示信号,并接收电子设备发送的控制信号,以开启第二扬声器。如此,可以根据实际使用需求控制开启第二扬声器,从而使得播放的音频的层次更加丰富,产生立体声播放效果,进而提高电子设备播放音频的效果。The application provides an earphone, the earphone includes a control module, a second speaker, a third speaker and an electromagnetic sensor connected to the control module, the second speaker is an external speaker, and the third speaker is an earpiece speaker. When the electromagnetic sensor detects that the earphone is in contact with the electronic device, the control module sends an indication signal to the electronic device, and receives the control signal sent by the electronic device to turn on the second speaker. In this way, the second speaker can be controlled to be turned on according to actual use requirements, so that the levels of the audio being played are richer, and a stereo playback effect is generated, thereby improving the audio playback effect of the electronic device.
需要说明的是,本申请实施例提供的扬声器控制方法,执行主体可以为扬声器控制装置,或者该扬声器控制装置中的用于执行扬声器控制方法的控制模块。本申请实施例中以扬声器控制装置执行扬声器控制方法为例,说明本申请实施例提供的装置。It should be noted that, in the speaker control method provided by the embodiments of the present application, the execution body may be a speaker control device, or a control module in the speaker control device for executing the speaker control method. In the embodiment of the present application, the device provided by the embodiment of the present application is described by taking the loudspeaker control device executing the loudspeaker control method as an example.
如图9所示,本申请实施例提供一种扬声器控制装置900。该扬声器控制装置900包括处理模块901。As shown in FIG. 9 , an embodiment of the present application provides a
处理模块901,用于在第一电子设备与第二电子设备接触的情况下,控制第一扬声器和第二扬声器开启。其中,该第一扬声器为第一电子设备的扬声器,该第二扬声器为第二电子设备的扬声器。The
可选的,结合图9,如图10所示,本申请实施例提供一种扬声器控制装置900。该扬声器控制装900还可以包括收发模块902。收发模块902,可以用于接收第二电子设备发送的指示信号,该指示信号用于指示第一电子设备和第二电子设备接触。处理模块901,可以用于根据收发模块902接收的该指示信号,控制第一扬声器和第二扬声器开启。Optionally, with reference to FIG. 9 , as shown in FIG. 10 , an embodiment of the present application provides a
可选的,如图10所示,本申请实施例所提供的扬声器控制装置900还包括:显示模块903和接收模块904。显示模块903,可以用于显示目标提示信息,该目标提示信息用于提示用户是否开启立体声播放。接收模块904,可以用于接收对该目标提示信息的第一输入。处理模块901,具体可以用于响应于接收模块904接收的该第一输入,根据该指示信号,控制第一扬声器和第二扬声器开启。Optionally, as shown in FIG. 10 , the
可选的,如图10所示,第二扬声器为定向扬声器,本申请实施例所提供的扬声器控制装置900还包括调整模块905。接收模块904,还可以用于接收的第二输入,该第二输入为调整第二电子设备与第一电子设备相对位置的输入。调整模块905,用于响应于接收模块904接收的该第二输入,调整第二电子设备输出音频的方向。Optionally, as shown in FIG. 10 , the second speaker is a directional speaker, and the
可选的,如图10所示,调整模块905,可以用于根据目标信息,调整目标扬声器的输出参数,该目标信息为用户的输入或第一电子设备当前的使用状态。其中,该目标扬声器为第一扬声器和/或第二扬声器。Optionally, as shown in FIG. 10 , the
本申请实施例中的扬声器控制装置可以是电子设备中执行扬声器控制方法的功能实体和/或功能模块,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personalcomputer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(network attached storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The speaker control apparatus in the embodiment of the present application may be a functional entity and/or functional module in an electronic device that executes a speaker control method, and may also be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). , PDA), etc., the non-mobile electronic device can be a server, network attached storage (NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application implements Examples are not specifically limited.
本申请实施例中的扬声器控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The speaker control device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的扬声器控制装置能够实现图1至图10的方法实施例中扬声器控制装置实现的各个过程,为避免重复,这里不再赘述。The speaker control apparatus provided in the embodiments of the present application can implement each process implemented by the speaker control apparatus in the method embodiments of FIG. 1 to FIG. 10 , and to avoid repetition, details are not repeated here.
本申请实施例提供一种扬声器控制装置,当第一电子设备和第二电子设备接触时,第一电子设备能够控制其自身的第一扬声器和第二电子设备的第二扬声器开启,由于第一扬声器和第二扬声器分别属于不同的电子设备,且两者的安装在不同电子设备的不同的位置,因此在通过第一扬声器和第二扬声器播放音频时,能够丰富音频的层次,产生立体声播放效果,从而提高电子设备播放音频的效果。An embodiment of the present application provides a speaker control device. When a first electronic device and a second electronic device are in contact, the first electronic device can control its own first speaker and the second speaker of the second electronic device to turn on. The speaker and the second speaker belong to different electronic devices, and they are installed in different positions of different electronic devices. Therefore, when the audio is played through the first speaker and the second speaker, the audio level can be enriched and a stereo playback effect can be produced. , so as to improve the audio playback effect of the electronic device.
可选的,如图11所示,本申请实施例还提供一种电子设备1100,包括处理器1101,存储器1102,存储在存储器1102上并可在所述处理器1101上运行的程序或指令,该程序或指令被处理器1101执行时实现上述扬声器控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 11 , an embodiment of the present application further provides an
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
图12为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 12 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备2000包括但不限于:射频单元2001、网络模块2002、音频输出单元2003、输入单元2004、传感器2005、显示单元2006、用户输入单元2007、接口单元2008、存储器2009、以及处理器2010等部件。The
其中,输入单元2004可以包括图形处理器20041和麦克风20042,显示单元2006可以包括显示面板20061,用户输入单元2007可以包括触控面板20071以及其他输入设备20072,存储器2009可用于存储软件程序(如,操作系统、至少一个功能所需的应用程序)以及各种数据。The
本领域技术人员可以理解,电子设备2000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器2010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the
其中,处理器2010,可以用于在第一电子设备与第二电子设备接触的情况下,控制第一扬声器和第二扬声器开启。其中,该第一扬声器为第一电子设备的扬声器,该第二扬声器为第二电子设备的扬声器。The
本申请实施例提供一种电子设备,当第一电子设备和第二电子设备接触时,第一电子设备能够控制其自身的第一扬声器和第二电子设备的第二扬声器开启,由于第一扬声器和第二扬声器分别属于不同的电子设备,且两者的安装在不同电子设备的不同的位置,因此在通过第一扬声器和第二扬声器播放音频时,能够丰富音频的层次,产生立体声播放效果,从而提高电子设备播放音频的效果。The embodiment of the present application provides an electronic device, when the first electronic device and the second electronic device are in contact, the first electronic device can control its own first speaker and the second speaker of the second electronic device to turn on, because the first speaker and the second speaker belong to different electronic devices, and they are installed in different positions of different electronic devices, so when the audio is played through the first speaker and the second speaker, the audio level can be enriched and the stereo playback effect can be produced. Thereby, the effect of playing audio on the electronic device is improved.
可选的,本申请实施例中,射频单元2001,可以用于接收第二电子设备发送的指示信号,该指示信号用于指示第一电子设备和第二电子设备接触。处理器2010,可以用于根据射频单元2001接收的该指示信号,控制第一扬声器和第二扬声器开启。Optionally, in this embodiment of the present application, the
可以理解的是,第一电子设备可以接收第二电子设备发送的用于指示第一电子设备和第二电子设备接触的指示信号,并根据该指示信号,控制第一电子设备的第一扬声器和第二电子设备的第二扬声器开启。通过该方案,由于第一扬声器和第二扬声器的安装位置不同,因此在通过第一扬声器和第二扬声器同时开启,并播放音频时,能够丰富音频的层次,产生立体声播放效果,从而提高电子设备播放音频的效果。It can be understood that the first electronic device can receive an instruction signal sent by the second electronic device to indicate that the first electronic device and the second electronic device are in contact, and control the first speaker and the first speaker of the first electronic device according to the instruction signal. The second speaker of the second electronic device is turned on. With this solution, since the installation positions of the first speaker and the second speaker are different, when the first speaker and the second speaker are turned on at the same time and audio is played, the level of the audio can be enriched, and a stereo playback effect can be produced, thereby improving the electronic equipment. The effect of playing audio.
可选的,本申请实施例中,处理器2010,具体可以用于根据指示信号,控制射频单元2001向第二电子设备发送控制信号,该控制信号可以用于控制第二电子设备开启第二扬声器。Optionally, in this embodiment of the present application, the
可以理解的是,由于第一电子设备可以根据指示信号,向第二电子设备发送用于控制开启第二扬声器的控制信号,因此,第二电子设备可以根据接收到的控制信号控制第二扬声器开启。如此,在播放音频时,能够使得第一扬声器和第二扬声器同时播放该音频,形成立体声播放效果,从而提到电子设备的音频播放效果,进而提高用户的使用体验。It can be understood that, since the first electronic device can send a control signal for controlling the turning on of the second speaker to the second electronic device according to the instruction signal, the second electronic device can control the turning on of the second speaker according to the received control signal. . In this way, when the audio is played, the first speaker and the second speaker can simultaneously play the audio to form a stereo playback effect, thereby improving the audio playback effect of the electronic device, thereby improving the user experience.
可选的,本申请实施例中,音频输出单元2003,可以用于通过第一扬声器和第二扬声器输出音频信号。Optionally, in this embodiment of the present application, the
可以理解的是,由于电子设备可以同时使用第一扬声器和第二扬声器播放该音频,从而形成立体声播放效果,进而提到电子设备的音频播放效果。It can be understood that, since the electronic device can use the first speaker and the second speaker to play the audio at the same time, a stereo playback effect is formed, and the audio playback effect of the electronic device is further mentioned.
可选的,本申请实施例中,第一电子设备和第二电子设备为磁连接方式接触,或为电连接方式接触。Optionally, in this embodiment of the present application, the first electronic device and the second electronic device are in contact in a magnetic connection manner, or in an electrical connection manner.
可选的,本申请实施例中,显示单元2006,可以用于显示目标提示信息,该目标提示信息用于提示用户是否开启立体声播放。用户输入单元2007,可以用于接收对该目标提示信息的第一输入。处理器2010,具体可以用于响应于用户输入单元2007接收的该第一输入,根据该指示信号,控制第一扬声器和第二扬声器开启。Optionally, in this embodiment of the present application, the
可以理解的是,在第一电子设备接收到第二电子设备发送的指示信号之后,第一电子设备可以显示用于提示用户是否开启立体声播放的目标提示信息,进而用户可以通过对该目标提示信息的输入,控制第一扬声器和第二扬声器的开启。如此,用户可以根据实际使用需求选择是否开启立体声播放,从而提高人机交互性能,方便用户使用,进而提高用户的使用体验。It can be understood that, after the first electronic device receives the indication signal sent by the second electronic device, the first electronic device can display the target prompt information for prompting the user whether to turn on the stereo playback, and then the user can pass the target prompt information through the target prompt information. input to control the opening of the first speaker and the second speaker. In this way, the user can choose whether to enable stereo playback according to actual usage requirements, thereby improving the human-computer interaction performance, facilitating the user's use, and further improving the user's use experience.
可选的,本申请实施例中,用户输入单元2007,还可以用于接收的第二输入,该第二输入为调整第二电子设备与第一电子设备相对位置的输入。处理器2010,用于响应于用户输入单元2007接收的该第二输入,调整第二电子设备输出音频的方向。Optionally, in this embodiment of the present application, the
可以理解的是,用户可以根据实际使用需求调整第一扬声器和第二扬声器之间的相对位置与,以改变第二扬声器的音频输出方向,从而使得输出的立体声效果更加明显,更加符合用户需求,进而提升用户的使用体验。It can be understood that the user can adjust the relative position between the first speaker and the second speaker according to the actual use requirements, so as to change the audio output direction of the second speaker, so that the output stereo effect is more obvious and more in line with user needs. In order to improve the user experience.
可选的,本申请实施例中,处理器2010,可以用于根据目标信息,调整目标扬声器的输出参数,该目标信息为用户的输入或第一电子设备当前的使用状态。其中,该目标扬声器为第一扬声器和/或第二扬声器。Optionally, in this embodiment of the present application, the
可以理解的是,第一电子设备可以根据用户输入或者第一电子设备当前的使用状态,调整目标扬声器的输出参数,使得目标扬声器的输入参数与当前的使用场景或用户的需求相适应。如此方便用户使用立体声模式,提高用户的使用体验。It can be understood that the first electronic device can adjust the output parameters of the target speaker according to the user input or the current usage state of the first electronic device, so that the input parameters of the target speaker are adapted to the current usage scenario or the user's needs. It is convenient for the user to use the stereo mode, and the user experience is improved.
本申请实施例还提供一种可读存储介质,该可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述扬声器控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the foregoing speaker control method embodiment can be achieved, and the same can be achieved. The technical effect, in order to avoid repetition, will not be repeated here.
其中,该处理器为上述实施例中的电子设备中的处理器。该可读存储介质,包括计算机可读存储介质,如计算机只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and the like.
本申请实施例另提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现上述扬声器控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used for running a program or an instruction to implement each process of the above speaker control method embodiment, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010574225.3A CN111770416B (en) | 2020-06-22 | 2020-06-22 | Speaker control method, device and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010574225.3A CN111770416B (en) | 2020-06-22 | 2020-06-22 | Speaker control method, device and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111770416A CN111770416A (en) | 2020-10-13 |
CN111770416B true CN111770416B (en) | 2022-08-02 |
Family
ID=72721704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010574225.3A Active CN111770416B (en) | 2020-06-22 | 2020-06-22 | Speaker control method, device and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111770416B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112492073B (en) * | 2020-11-24 | 2021-09-28 | 捷开通讯(深圳)有限公司 | Audio playing method and device, storage medium and mobile terminal |
CN115904303A (en) | 2021-05-21 | 2023-04-04 | 荣耀终端有限公司 | Method and device for playing sound |
CN113326017A (en) * | 2021-06-01 | 2021-08-31 | 南昌勤胜电子科技有限公司 | Loudspeaker parameter configuration method and device, electronic equipment and storage medium |
CN113709281A (en) * | 2021-08-24 | 2021-11-26 | Oppo广东移动通信有限公司 | Control method, electronic device and external playing system |
CN113746982B (en) * | 2021-08-25 | 2023-02-28 | 维沃移动通信(杭州)有限公司 | Audio playing control method and device, electronic equipment and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104640029A (en) * | 2013-11-06 | 2015-05-20 | 索尼公司 | Audio outputting method and device, and electronic device |
CN111093137A (en) * | 2019-12-27 | 2020-05-01 | 维沃移动通信有限公司 | A volume control method, device and computer-readable storage medium |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200908669A (en) * | 2007-08-15 | 2009-02-16 | Cotron Corp | Stereo bluetooth headset |
CN102143421B (en) * | 2010-02-02 | 2013-06-05 | 华为终端有限公司 | Terminal and method for processing audio of terminal |
CN201854433U (en) * | 2010-08-10 | 2011-06-01 | 上海华勤通讯技术有限公司 | Mobile phone capable of outputting voice frequency by cooperation |
CN103167372A (en) * | 2013-04-09 | 2013-06-19 | 北京兴科迪科技有限公司 | Bluetooth headset with hands-free function and vehicle with same |
CN103929691A (en) * | 2014-03-20 | 2014-07-16 | 联想(北京)有限公司 | Information processing method and electronic equipment |
KR20170082405A (en) * | 2016-01-06 | 2017-07-14 | 삼성전자주식회사 | Ear wearable type wireless device and system supporting the same |
CN106454645A (en) * | 2016-11-15 | 2017-02-22 | 深圳天珑无线科技有限公司 | Method for broadcasting stereophonic sound with inter-linked equipment, stereophonic sound broadcasting system and audio equipment |
CN106792365B (en) * | 2016-11-23 | 2020-10-02 | 广东小天才科技有限公司 | A kind of audio playback method and device |
CN108419183A (en) * | 2018-03-29 | 2018-08-17 | 联想(北京)有限公司 | The audio-frequency processing method and electronic equipment of a kind of electronic equipment |
-
2020
- 2020-06-22 CN CN202010574225.3A patent/CN111770416B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104640029A (en) * | 2013-11-06 | 2015-05-20 | 索尼公司 | Audio outputting method and device, and electronic device |
CN111093137A (en) * | 2019-12-27 | 2020-05-01 | 维沃移动通信有限公司 | A volume control method, device and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111770416A (en) | 2020-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111770416B (en) | Speaker control method, device and electronic device | |
CN108551636B (en) | A speaker control method and mobile terminal | |
EP2327198B1 (en) | Remote user interface in multiphone environment | |
CN108886653B (en) | An earphone channel control method, related equipment and system | |
CN112261202B (en) | Electronic equipment, control method and control device thereof | |
CN107770760B (en) | A kind of method and mobile terminal of the type identifying bluetooth equipment | |
CN108966067B (en) | Play control method and related product | |
US10951557B2 (en) | Information interaction method and terminal | |
CN112653965B (en) | Audio playback control circuit and method, device, electronic device and storage medium thereof | |
CN107046664B (en) | Automatically configurable speaker system | |
CN106095387B (en) | Sound effect setting method of terminal and terminal | |
CN115190197B (en) | Bluetooth headset-based communication method and device and storage medium | |
CN108040313A (en) | A kind of play parameter control method and electronic equipment | |
CN109739465A (en) | Audio output method and mobile terminal | |
WO2021169869A1 (en) | Audio-playing apparatus, audio-playing method, and electronic device | |
CN107948874A (en) | A kind of terminal control method, mobile terminal | |
WO2017215661A1 (en) | Scenario-based sound effect control method and electronic device | |
CN106506834B (en) | Method, terminal and system for adding background sound during call | |
WO2021238844A1 (en) | Audio output method and electronic device | |
WO2024021736A1 (en) | Transmission method, apparatus, and system for bluetooth multimedia packet, and device | |
CN112312273B (en) | Sound playing method, sound receiving method and electronic device | |
CN113268210B (en) | Screen projection method, device and storage medium | |
WO2022022644A1 (en) | Loudspeak structure, and electronic device | |
CN109155803B (en) | Audio data processing method, terminal device and storage medium | |
CN208190894U (en) | Speaker device and system |
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 |