[go: up one dir, main page]

CN117354405A - Electronic equipment - Google Patents

Electronic equipment Download PDF

Info

Publication number
CN117354405A
CN117354405A CN202311439629.1A CN202311439629A CN117354405A CN 117354405 A CN117354405 A CN 117354405A CN 202311439629 A CN202311439629 A CN 202311439629A CN 117354405 A CN117354405 A CN 117354405A
Authority
CN
China
Prior art keywords
speaker
electrically connected
power amplifier
electronic device
loudspeaker
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311439629.1A
Other languages
Chinese (zh)
Inventor
麦碧权
张鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311439629.1A priority Critical patent/CN117354405A/en
Publication of CN117354405A publication Critical patent/CN117354405A/en
Pending legal-status Critical Current

Links

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
    • 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 
    • H04R1/28Transducer mountings or enclosures modified by provision of mechanical or acoustic impedances, e.g. resonator, damping means

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Amplifiers (AREA)

Abstract

本申请公开了一种电子设备,涉及电子设备技术领域。电子设备,包括:功率放大器;第一扬声器,第一扬声器的正极与功率放大器的输出端正极电连接,第一扬声器的负极与功率放大器的输出端负极电连接;第二扬声器,与功率放大器电连接,其中,在电子设备处于第一工作状态下,第二扬声器的正极与功率放大器的输出端负极电连接,第二扬声器的负极与功率放大器的输出正极电连接。

This application discloses an electronic device and relates to the technical field of electronic devices. Electronic equipment, including: a power amplifier; a first speaker, the positive electrode of the first speaker is electrically connected to the positive electrode of the output terminal of the power amplifier, the negative electrode of the first speaker is electrically connected to the negative electrode of the output terminal of the power amplifier; the second speaker is electrically connected to the output terminal of the power amplifier. Connection, wherein when the electronic device is in the first working state, the positive electrode of the second speaker is electrically connected to the negative electrode of the output terminal of the power amplifier, and the negative electrode of the second speaker is electrically connected to the positive output terminal of the power amplifier.

Description

电子设备Electronic equipment

技术领域Technical field

本申请涉及电子设备技术领域,具体涉及一种电子设备。The present application relates to the technical field of electronic equipment, and specifically relates to an electronic equipment.

背景技术Background technique

目标手机、平板电脑等移动式电子设备通常采用双扬声器来实现接打电话的防漏音设计,通过两个扬声器输出振幅相反的声波,达到防漏音的效果。Mobile electronic devices such as mobile phones and tablets usually use dual speakers to prevent sound leakage when making and receiving calls. The two speakers output sound waves with opposite amplitudes to prevent sound leakage.

在相关技术中,对双扬声器采用独立的两个音频PA(Power Amplifier,功率放大器)分别进行驱动,存在信号处理和传输延时,导致防漏音效果较差的问题。In related technologies, two independent audio PAs (Power Amplifiers) are used to drive dual speakers respectively, which causes signal processing and transmission delays, resulting in poor sound leakage prevention effects.

发明内容Contents of the invention

本申请实施例的目的是提供一种电子设备,提高了能够降低信号处理和传输延时,保证信号的一致性,解决了防漏音效果较差的问题。The purpose of the embodiments of the present application is to provide an electronic device that can improve signal processing and transmission delays, ensure signal consistency, and solve the problem of poor sound leakage prevention effect.

第一方面,本申请实施例提供了一种电子设备,包括:功率放大器;第一扬声器,第一扬声器的正极与功率放大器的输出端正极电连接,第一扬声器的负极与功率放大器的输出端负极电连接;第二扬声器,与功率放大器电连接,其中,在电子设备处于第一工作状态下,第二扬声器的正极与功率放大器的输出端负极电连接,第二扬声器的负极与功率放大器的输出正极电连接。In a first aspect, embodiments of the present application provide an electronic device, including: a power amplifier; a first speaker, the positive electrode of the first speaker is electrically connected to the positive electrode of the output terminal of the power amplifier, and the negative electrode of the first speaker is connected to the output terminal of the power amplifier. The negative electrode is electrically connected; the second speaker is electrically connected to the power amplifier. When the electronic device is in the first working state, the positive electrode of the second speaker is electrically connected to the negative electrode of the output end of the power amplifier, and the negative electrode of the second speaker is electrically connected to the negative electrode of the power amplifier. Output positive electrical connection.

本申请实施例中,通过一个功率放大器同步驱动第一扬声器和第二扬声器,第一扬声器正接在功率放大器的输出端,在电子设备处于第一工作状态下,第二扬声器反接在功率放大器的输出端,此时,第二扬声器输出的声波为第一扬声器输出的声波的反相声波,实现防漏音的效果。由于第一扬声器和第二扬声器均由一个功率放大器同步驱动,故能够降低信号处理和传输延时,保证信号的一致性,解决了防漏音效果较差的问题。In the embodiment of the present application, a power amplifier is used to drive the first speaker and the second speaker synchronously. The first speaker is connected to the output end of the power amplifier. When the electronic device is in the first working state, the second speaker is connected to the output end of the power amplifier. At the output end, at this time, the sound wave output by the second speaker is the inverse sound wave of the sound wave output by the first speaker, achieving the effect of preventing sound leakage. Since both the first speaker and the second speaker are driven synchronously by a power amplifier, signal processing and transmission delays can be reduced, signal consistency is ensured, and the problem of poor sound leakage prevention effect is solved.

附图说明Description of drawings

图1示出了本申请的一些实施例提供的电子设备的电路图之一;Figure 1 shows one of the circuit diagrams of an electronic device provided by some embodiments of the present application;

图2示出了本申请的一些实施例中提供的电子设备的结构示意图;Figure 2 shows a schematic structural diagram of an electronic device provided in some embodiments of the present application;

图3示出了本申请的一些实施例提供的电子设备的电路图之二;Figure 3 shows the second circuit diagram of the electronic device provided by some embodiments of the present application;

图4示出了本申请的一些实施例提供的电子设备的电路图之三;Figure 4 shows the third circuit diagram of the electronic device provided by some embodiments of the present application;

图5示出了本申请的一些实施例提供的电子设备的电路图之四;Figure 5 shows the fourth circuit diagram of the electronic device provided by some embodiments of the present application;

图6示出了本申请的一些实施例提供的电子设备的控制方法的流程图;Figure 6 shows a flow chart of a control method for an electronic device provided by some embodiments of the present application;

图7示出了本申请的一些实施例提供的电子设备的电路图之五;Figure 7 shows the fifth circuit diagram of the electronic device provided by some embodiments of the present application;

图8示出了本申请的一些实施例提供的电子设备的电路图之六;Figure 8 shows the sixth circuit diagram of the electronic device provided by some embodiments of the present application;

图9示出了本申请的一些实施例提供的电子设备的电路图之七。Figure 9 shows the seventh circuit diagram of the electronic device provided by some embodiments of the present application.

图1至图9的附图标记如下:The reference numbers in Figures 1 to 9 are as follows:

100电子设备,102功率放大器,104第一扬声器,106开关件,A1第一静触点,A2第二静触点,B1第一动触点,B2第二动触点,B3第三动触点,B4第四动触点,108第二扬声器,110控制器,112第一采样端,1122第一检测通道,1124第二检测通道,114第二采样端,1142第三检测通道,1144第四检测通道,120采样电路,R1第一电阻,R2第二电阻,R3第三电阻,132面板,134中框,136第一出音孔,138第二出音孔。100 Electronic equipment, 102 power amplifier, 104 first speaker, 106 switch parts, A1 first static contact, A2 second static contact, B1 first movable contact, B2 second movable contact, B3 third movable contact Point, B4 fourth moving contact, 108 second speaker, 110 controller, 112 first sampling terminal, 1122 first detection channel, 1124 second detection channel, 114 second sampling terminal, 1142 third detection channel, 1144 Four detection channels, 120 sampling circuit, R1 first resistor, R2 second resistor, R3 third resistor, 132 panel, 134 middle frame, 136 first sound hole, 138 second sound hole.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly 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, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances so that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

下面结合附图1至图9,通过具体的实施例及其应用场景对本申请实施例提供的电子设备进行详细地说明。The electronic device provided by the embodiments of the present application will be described in detail below with reference to Figures 1 to 9 through specific embodiments and application scenarios.

在本申请实施例提供了一种电子设备,图1示出了本申请的一些实施例提供的电子设备的电路图之一,如图1所示,电子设备100包括:功率放大器102、第一扬声器104和第二扬声器108。An embodiment of the present application provides an electronic device. Figure 1 shows one of the circuit diagrams of the electronic device provided by some embodiments of the present application. As shown in Figure 1, the electronic device 100 includes: a power amplifier 102, a first speaker 104 and a second speaker 108.

第一扬声器104的正极与功率放大器102的输出端正极电连接,第一扬声器104的负极与功率放大器102的输出端负极电连接;第二扬声器108与功率放大器102电连接,其中,在电子设备100处于第一工作状态下,第二扬声器108的正极与功率放大器102的输出端负极电连接,第二扬声器108的负极与功率放大器102的输出正极电连接。The positive electrode of the first speaker 104 is electrically connected to the positive electrode of the output terminal of the power amplifier 102, the negative electrode of the first speaker 104 is electrically connected to the negative electrode of the output terminal of the power amplifier 102; the second speaker 108 is electrically connected to the power amplifier 102, wherein, in the electronic device 100 is in the first working state, the positive electrode of the second speaker 108 is electrically connected to the negative electrode of the output terminal of the power amplifier 102, and the negative electrode of the second speaker 108 is electrically connected to the positive output terminal of the power amplifier 102.

本申请实施例中,功率放大器102与第一扬声器104和第二扬声器108电连接,其中,在电子设备100处于第一工作状态下,功率放大器102的输出端正极与第一扬声器104的正极电连接和第二扬声器108的负极电连接,功率放大器102的输出端负极与第一扬声器104的负极电连接和第二扬声器108的正极电连接。功率放大器102用于输出驱动信号,第一扬声器104接收到正相的驱动信号,输出正相声波,第二扬声器108由于正极和负极反接在功率放大器102的输出端,故第二扬声器108接收到反相的驱动信号,输出反相声波,通过反相声波相消能够减少电子设备100的漏音。In the embodiment of the present application, the power amplifier 102 is electrically connected to the first speaker 104 and the second speaker 108. When the electronic device 100 is in the first working state, the positive terminal of the output terminal of the power amplifier 102 is electrically connected to the positive terminal of the first speaker 104. The negative electrode of the output terminal of the power amplifier 102 is electrically connected to the negative electrode of the first speaker 104 and the positive electrode of the second speaker 108 . The power amplifier 102 is used to output drive signals. The first speaker 104 receives the positive-phase drive signal and outputs the positive-phase sound wave. Since the positive and negative poles of the second speaker 108 are reversely connected to the output end of the power amplifier 102, the second speaker 108 receives The reverse-phase driving signal is received and the reverse-phase sound wave is output. The sound leakage of the electronic device 100 can be reduced through the cancellation of the reverse-phase sound wave.

图2示出了本申请的一些实施例中提供的电子设备的结构示意图,如图2所示,第一扬声器104和第二扬声器108设置在电子设备100的本体内,且第一扬声器104对应的第一出音孔136设置在面板132上,第二扬声器108对应的第二出音孔138设置在中框134上。第二扬声器108通过第二出音孔138向外输出与第一扬声器104反相的声波,对从边框位置输出的正相声波进行反相抵消,从而起到防漏音的作用。Figure 2 shows a schematic structural diagram of an electronic device provided in some embodiments of the present application. As shown in Figure 2, the first speaker 104 and the second speaker 108 are disposed in the body of the electronic device 100, and the first speaker 104 corresponds to The first sound hole 136 is provided on the panel 132 , and the second sound hole 138 corresponding to the second speaker 108 is provided on the middle frame 134 . The second speaker 108 outputs a sound wave in the opposite phase to that of the first speaker 104 through the second sound hole 138, and counteracts the normal-phase sound wave output from the frame position, thereby preventing sound leakage.

本申请实施例中,电子设备100在第一工作状态下,第二扬声器108反接在功率放大器102的输出端,起到输出与第一扬声器104输出的声波相位相反的声波,能够对第一扬声器104输出的声波进行反相相消,减少电子设备100漏音的情况发生。In the embodiment of the present application, when the electronic device 100 is in the first working state, the second speaker 108 is reversely connected to the output end of the power amplifier 102 to output a sound wave with an opposite phase to the sound wave output by the first speaker 104, which can respond to the first sound wave. The sound waves output by the speaker 104 undergo phase inversion and cancellation, thereby reducing sound leakage from the electronic device 100 .

示例性地,第一工作状态为电子设备100的语音通话状态、视频通话状态等。在用户通过电子设备100进行通话时,通过第二扬声器108输出反相的声波,对溢出的第一扬声器104输出的声波进行反相相消,从而对电子设备100进行防漏音处理。Illustratively, the first working state is the voice call state, video call state, etc. of the electronic device 100 . When the user makes a call through the electronic device 100, inverted sound waves are output through the second speaker 108, and the overflowing sound waves output by the first speaker 104 are inverted and canceled, thereby preventing sound leakage in the electronic device 100.

本申请实施例中,功率放大器102用于在接收到数字音频信号的情况下,将数字音频信号转换为模拟音频信号,并通过模拟音频信号驱动第一扬声器104和第二扬声器108,其中,模拟音频信号为驱动信号。In the embodiment of the present application, the power amplifier 102 is used to convert the digital audio signal into an analog audio signal when receiving a digital audio signal, and drive the first speaker 104 and the second speaker 108 through the analog audio signal, where the analog The audio signal is the driving signal.

本申请实施例中,在第一工作状态下,第二扬声器输出的声波为第一扬声器输出的声波的反相声波,即第一扬声器输出的声波和第二扬声器输出的声波之间的幅度相匹配,且相位相反。在在第一工作状态为语音通话时,第一扬声器104的出音孔正对人耳,第二扬声器108的出音孔对外,在第一扬声器104输出第一扬声器输出的声波,且第二扬声器108输出第二扬声器输出的声波的情况下,用户能够听到第一扬声器104输出的第一扬声器输出的声波,其他人听到的是第一扬声器104和第二扬声器108输出声波叠加的声音,由于相位相反第一扬声器输出的声波与第二扬声器输出的声波叠加相消,从而实现防漏音的效果。在用户通过电子设备100进行外放音频时,控制开关件106切换至第一开关件106状态,第一扬声器104和第二扬声器108均输出第一扬声器输出的声波。In the embodiment of the present application, in the first working state, the sound wave output by the second speaker is the opposite phase sound wave of the sound wave output by the first speaker, that is, the amplitude phase between the sound wave output by the first speaker and the sound wave output by the second speaker is matching and opposite in phase. When the first working state is a voice call, the sound hole of the first speaker 104 faces the human ear, and the sound hole of the second speaker 108 faces outward. The first speaker 104 outputs the sound wave output by the first speaker, and the second speaker 104 outputs the sound wave. When the speaker 108 outputs the sound wave output by the second speaker, the user can hear the sound wave output by the first speaker 104 and other people can hear the superposed sound wave output by the first speaker 104 and the second speaker 108 . , since the sound waves output by the first speaker and the sound waves output by the second speaker are superimposed and canceled with opposite phases, the effect of preventing sound leakage is achieved. When the user plays audio through the electronic device 100, the switch 106 is controlled to switch to the first switch 106 state, and both the first speaker 104 and the second speaker 108 output the sound wave output by the first speaker.

本申请实施例中,通过一个功率放大器102同步驱动第一扬声器104和第二扬声器108,第一扬声器104正接在功率放大器102的输出端,在电子设备处于第一工作状态下,第二扬声器108反接在功率放大器102的输出端,此时,第二扬声器108输出的声波为第一扬声器104输出的声波的反相声波,实现防漏音的效果。由于第一扬声器104和第二扬声器108均由一个功率放大器102同步驱动,故能够降低信号处理和传输延时,保证信号的一致性,解决了防漏音效果较差的问题。In the embodiment of the present application, the first speaker 104 and the second speaker 108 are driven synchronously through a power amplifier 102. The first speaker 104 is connected to the output end of the power amplifier 102. When the electronic device is in the first working state, the second speaker 108 When connected inversely to the output end of the power amplifier 102, at this time, the sound wave output by the second speaker 108 is the inverse sound wave of the sound wave output by the first speaker 104, thereby achieving the effect of preventing sound leakage. Since both the first speaker 104 and the second speaker 108 are driven synchronously by a power amplifier 102, signal processing and transmission delays can be reduced, signal consistency is ensured, and the problem of poor sound leakage prevention effect is solved.

在本申请的一些实施例中,在电子设备100处于第二工作状态下,第二扬声器108的正极与功率放大器102的输出端正极电连接,第二扬声器108的负极与功率放大器102的输出负极电连接。In some embodiments of the present application, when the electronic device 100 is in the second working state, the positive electrode of the second speaker 108 is electrically connected to the positive output terminal of the power amplifier 102, and the negative electrode of the second speaker 108 is electrically connected to the output negative electrode of the power amplifier 102. Electrical connection.

本申请实施例中,在电子设备100处于第二工作状态下,第二扬声器108与功率放大器102的输出端正接。即电子设备100在第二工作状态下,第二扬声器108的正极与功率放大器102的输出端正极电连接,第二扬声器108的负极与功率放大器102的输出端负极电连接,此时,第二扬声器108与第一扬声器104输出的声波为同相声波,故能够对第一扬声器104输出的声波进行增强。In the embodiment of the present application, when the electronic device 100 is in the second working state, the second speaker 108 is connected to the output terminal of the power amplifier 102 . That is, in the second working state of the electronic device 100, the positive electrode of the second speaker 108 is electrically connected to the positive electrode of the output terminal of the power amplifier 102, and the negative electrode of the second speaker 108 is electrically connected to the negative electrode of the output terminal of the power amplifier 102. At this time, the second The sound waves output by the speaker 108 and the first speaker 104 are in-phase sound waves, so the sound waves output by the first speaker 104 can be enhanced.

示例性地,第二工作状态可以为电子设备100的外放模式,例如:通话外放模式、视频播放模式、音频播放模式。For example, the second working state may be the external playback mode of the electronic device 100, such as: call playback mode, video playback mode, and audio playback mode.

本申请实施例中,电子设备100在第一工作模式和第二工作模式之间切换,则第二扬声器108能够在与功率放大器102正接与反接之间进行切换,在电子设备100运行在第一工作模式下,第二扬声器108反接在功率放大器102的输出端,第一扬声器104正接在功率放大器102的输出端,使第二扬声器108输出的声波与第一扬声器104输出的声波相位相反,起到防漏音的效果。在电子设备100运行在第二工作模式下,第二扬声器108和第一扬声器104均正接在功率放大器102的输出端,使第二扬声器108的输出的声波与第一扬声器104输出的声波相位相同,起到增强声波的效果。电子设备100通过在第一工作模式第二工作模式之间切换,能够对第二扬声器108的正接和反接进行切换,从而实现防漏音效果和增强声波效果之间的切换。In the embodiment of the present application, when the electronic device 100 switches between the first working mode and the second working mode, the second speaker 108 can switch between the positive connection and the reverse connection with the power amplifier 102. When the electronic device 100 is running in the first working mode, In one working mode, the second speaker 108 is connected to the output end of the power amplifier 102 in reverse, and the first speaker 104 is directly connected to the output end of the power amplifier 102, so that the sound waves output by the second speaker 108 have opposite phases to the sound waves output by the first speaker 104. , to prevent sound leakage. When the electronic device 100 is running in the second working mode, the second speaker 108 and the first speaker 104 are both connected to the output end of the power amplifier 102, so that the sound wave output by the second speaker 108 has the same phase as the sound wave output by the first speaker 104. , which has the effect of enhancing sound waves. By switching between the first working mode and the second working mode, the electronic device 100 can switch the forward connection and the reverse connection of the second speaker 108, thereby achieving switching between the sound leakage prevention effect and the sound wave enhancement effect.

图3示出了本申请的一些实施例提供的电子设备的电路图之二,如图3所示,在本申请的一些实施例中,电子设备还包括开关件,开关件包括:第一静触点A1、第二静触点A2、第一动触点B1、第二动触点B2、第三动触点B3、第四动触点B4。Figure 3 shows the second circuit diagram of the electronic device provided by some embodiments of the present application. As shown in Figure 3, in some embodiments of the present application, the electronic device further includes a switch component, and the switch component includes: a first static contact Point A1, second stationary contact A2, first movable contact B1, second movable contact B2, third movable contact B3, and fourth movable contact B4.

第一静触点A1与功率放大器102的输出端正极电连接;第二静触点A2与功率放大器102的输出端负极电连接;第一动触点B1与第二扬声器108的正极电连接;第二动触点B2与第二扬声器108的负极电连接;第三动触点B3与第二扬声器108的正极电连接;第四动触点B4与第二扬声器108的负极电连接;The first static contact A1 is electrically connected to the positive terminal of the output terminal of the power amplifier 102; the second static contact A2 is electrically connected to the negative terminal of the output terminal of the power amplifier 102; the first movable contact B1 is electrically connected to the positive terminal of the second speaker 108; The second movable contact B2 is electrically connected to the negative electrode of the second speaker 108; the third movable contact B3 is electrically connected to the positive electrode of the second speaker 108; the fourth movable contact B4 is electrically connected to the negative electrode of the second speaker 108;

其中,在电子设备100处于第一工作状态下,第一静触点A1与第二动触点B2电连接,第二静触点A2与第三动触点B3电连接;电子设备处于第二工作状态下,第一静触点A1与第一动触点B1电连接,第二静触点A2与第四动触点B4电连接。Wherein, when the electronic device 100 is in the first working state, the first static contact A1 is electrically connected to the second movable contact B2, and the second static contact A2 is electrically connected to the third movable contact B3; the electronic device is in the second working state. In the working state, the first static contact A1 is electrically connected to the first movable contact B1, and the second static contact A2 is electrically connected to the fourth movable contact B4.

本申请实施例中,开关件106为2切4的开关件106,开关件106中包括第一静触点A1和第二静触点A2两个静触点,以及第一动触点B1、第二动触点B2、第三动触点B3和第四动触点B4共四个动触点。其中,第一静触点A1和第二静触点A2分别与功率放大器102的输出端正极和输出端负极电连接,第一动触点B1和第三动触点B3均与第二扬声器108的正极电连接,第二动触点B2和第四动触点B4均与第二扬声器108的负极电连接。第一静触点A1能够在第一动触点B1与第三动触点B3之间切换,第二静触点A2能够在第二动触点B2与第四动触点B4之间切换。以下对开关件106的控制逻辑进行详细说明:In the embodiment of the present application, the switch component 106 is a 2-to-4 switch component. The switch component 106 includes two static contacts, a first static contact A1 and a second static contact A2, as well as a first movable contact B1, There are four movable contacts in total: the second movable contact B2, the third movable contact B3 and the fourth movable contact B4. Among them, the first static contact A1 and the second static contact A2 are electrically connected to the positive pole and the negative pole of the output terminal of the power amplifier 102 respectively, and the first movable contact B1 and the third movable contact B3 are both connected to the second speaker 108 The positive electrode of the second speaker 108 is electrically connected, and the second movable contact B2 and the fourth movable contact B4 are both electrically connected to the negative electrode of the second speaker 108 . The first stationary contact A1 can be switched between the first movable contact B1 and the third movable contact B3, and the second stationary contact A2 can be switched between the second movable contact B2 and the fourth movable contact B4. The control logic of the switch 106 is described in detail below:

在电子设备100处于第一工作状态下,在控制第二扬声器108输出与第一扬声器104输出的声波相位相反的声波时,需要将开关件106切换至第二开关状态,即第一静触点A1与第二动触点B2电连接,第二静触点A2与第三动触点B3电连接,使功率放大器102的输出端正极连接至第二扬声器108的负极,以及功率放大器102的输出端负极连接至第二扬声器108的正极。When the electronic device 100 is in the first working state, when controlling the second speaker 108 to output a sound wave with an opposite phase to the sound wave output by the first speaker 104, the switch member 106 needs to be switched to the second switch state, that is, the first static contact. A1 is electrically connected to the second movable contact B2, and the second static contact A2 is electrically connected to the third movable contact B3, so that the positive terminal of the output terminal of the power amplifier 102 is connected to the negative terminal of the second speaker 108, and the output of the power amplifier 102 The negative terminal is connected to the positive terminal of the second speaker 108 .

在电子设备处于第二工作状态下,在控制第一扬声器104与第二扬声器108输出同相的声波时,需要将控制开关件106第一静触点A1与第一动触点B1电连接,第二静触点A2与第四动触点B4电连接,使功率放大器102的输出端正极连接至第二扬声器108的正极,以及功率放大器102的输出端负极连接至第二扬声器108的负极。When the electronic device is in the second working state, when controlling the first speaker 104 and the second speaker 108 to output sound waves in the same phase, it is necessary to electrically connect the first static contact A1 and the first movable contact B1 of the control switch member 106. The two stationary contacts A2 are electrically connected to the fourth movable contact B4, so that the positive terminal of the output terminal of the power amplifier 102 is connected to the positive terminal of the second speaker 108, and the negative terminal of the output terminal of the power amplifier 102 is connected to the negative terminal of the second speaker 108.

本申请实施例中,开关件106包括两个静触点和四个动触点,通过切换开关件106的两个静触点与四个动触点之间的连接关系,能够切换第二扬声器108的正极和负极与功率放大器102的正极和负极的连接关系,使第二扬声器108能够在输出第一声波与第二声波之间切换,通过在电子设备100中设置2切4开关件106,并控制2切4的开关件106使第二扬声器108的正负极反转,从而实现防漏音功能和外放功能的切换。In the embodiment of the present application, the switch member 106 includes two static contacts and four movable contacts. By switching the connection relationship between the two static contacts and the four movable contacts of the switch member 106, the second speaker can be switched. The connection relationship between the positive and negative poles of 108 and the positive and negative poles of the power amplifier 102 enables the second speaker 108 to switch between outputting the first sound wave and the second sound wave, by providing a 2-to-4 switch 106 in the electronic device 100 , and controls the 2-to-4 switch member 106 to reverse the positive and negative poles of the second speaker 108, thereby realizing switching between the sound leakage prevention function and the external amplifier function.

图4示出了本申请的一些实施例提供的电子设备的电路图之三,如图4所示,在本申请的一些实施例中,电子设备还包括:开关件106,开关件106的第一端与功率放大器102的输出端负极电连接,开关件106的第二端与第二扬声器108的正极电连接,开关件106的第三端与功率放大器102的输出端正极电连接,开关件106的第四端与第二扬声器108的负极电连接;Figure 4 shows the third circuit diagram of the electronic device provided by some embodiments of the present application. As shown in Figure 4, in some embodiments of the present application, the electronic device further includes: a switch member 106, and a first part of the switch member 106. The second end of the switch member 106 is electrically connected to the positive electrode of the second speaker 108 , and the third end of the switch member 106 is electrically connected to the positive electrode of the output end of the power amplifier 102 . The switch member 106 The fourth terminal is electrically connected to the negative electrode of the second speaker 108;

其中,在电子设备处于第一工作状态下,开关件106的第一端与第二端导通,开关件106的第三端与第四端导通,电子设备处于第二工作状态,开关件106的第一端与第二端断开,开关件106的第三端和第四端断开。Wherein, when the electronic equipment is in the first working state, the first end and the second end of the switch member 106 are connected, the third end and the fourth end of the switch member 106 are connected, the electronic equipment is in the second working state, and the switch member 106 is connected. The first end and the second end of the switch member 106 are disconnected, and the third end and the fourth end of the switch member 106 are disconnected.

本申请实施例中,电子设备100还包括开关件106,该开关件106连接在功率放大器102与第二扬声器108之间,通过控制开关件106的通断状态,能够控制第二扬声器108是否与功率放大器102之间是否导通。In the embodiment of the present application, the electronic device 100 further includes a switch 106, which is connected between the power amplifier 102 and the second speaker 108. By controlling the on-off state of the switch 106, it can be controlled whether the second speaker 108 communicates with the second speaker 108. Whether the power amplifiers 102 are connected to each other.

示例性地,在电子设备100处于第一工作状态下,开关件106处于导通状态,则第二扬声器108的正极与功率放大器102的输出端负极电连接,第二扬声器108的负极与功率放大器102的输出端正极电连接,此时,第二扬声器108能够输出与第一扬声器104相位相反的声波,起到对电子设备100防漏音的效果。在电子设备100处于第二工作状态下,开关件106处于断开状态,则第二扬声器108与功率放大器102之间断开连接。For example, when the electronic device 100 is in the first working state and the switch 106 is in the conductive state, the positive electrode of the second speaker 108 is electrically connected to the negative electrode of the output terminal of the power amplifier 102, and the negative electrode of the second speaker 108 is electrically connected to the power amplifier. The positive terminal of the output terminal 102 is electrically connected. At this time, the second speaker 108 can output a sound wave with an opposite phase to that of the first speaker 104, thereby preventing sound leakage in the electronic device 100. When the electronic device 100 is in the second working state and the switch 106 is in the off state, the second speaker 108 and the power amplifier 102 are disconnected.

本申请实施例中,在功率放大器102与第二扬声器108之间设置开关件106,通过控制开关件106的通断状态,能够控制功率放大器102与第二扬声器108之间的通断状态,从而控制第二扬声器108是否输出与第一扬声器104相位相反的声波,通过开关件106能够对电子设备100是否开启防漏音功能进行控制。In the embodiment of the present application, a switch 106 is provided between the power amplifier 102 and the second speaker 108. By controlling the on-off state of the switch 106, the on-off state between the power amplifier 102 and the second speaker 108 can be controlled, thereby By controlling whether the second speaker 108 outputs a sound wave with an opposite phase to that of the first speaker 104, the switch 106 can be used to control whether the electronic device 100 turns on the sound leakage prevention function.

图5示出了本申请的一些实施例提供的电子设备的电路图之四,如图5所示,在本申请的一些实施例中,电子设备100还包括:控制器110和采样电路120,控制器110通过采样电路120与第一扬声器电连接以获取第一扬声器的驱动电流或驱动电压;和/或控制器110通过采样电路120与第二扬声器电连接以获取第二扬声器的驱动电流或驱动电压。Figure 5 shows the fourth circuit diagram of the electronic device provided by some embodiments of the present application. As shown in Figure 5, in some embodiments of the present application, the electronic device 100 also includes: a controller 110 and a sampling circuit 120. Control The controller 110 is electrically connected to the first speaker through the sampling circuit 120 to obtain the driving current or driving voltage of the first speaker; and/or the controller 110 is electrically connected to the second speaker through the sampling circuit 120 to obtain the driving current or driving voltage of the second speaker. Voltage.

本申请实施例中,控制器110可以为电子设备100的CPU(Central ProcessingUnit,中央处理器),采样电路120用于采集第一扬声器104和第二扬声器108中至少一个的驱动电流或驱动电压,使控制器110能够基于采集到的驱动电流或驱动电压对第一扬声器104和第二扬声器108中的至少一个进行过流保护或过压保护。In this embodiment of the present application, the controller 110 may be a CPU (Central Processing Unit) of the electronic device 100, and the sampling circuit 120 is used to collect the driving current or driving voltage of at least one of the first speaker 104 and the second speaker 108, The controller 110 is enabled to perform over-current protection or over-voltage protection on at least one of the first speaker 104 and the second speaker 108 based on the collected driving current or driving voltage.

本申请实施例中,采样电路120连接与第一扬声器104和控制器110之间,通过采样电路120控制器110能够采集第一扬声器104的驱动电流,通过将驱动电流与电流阈值进行比较,对第一扬声器104是否存在过流问题进行检测,并在第一扬声器104处于过流状态下,停止向第一扬声器104输出信号进行驱动,起到对第一扬声器104进行过流保护的效果。通过采样电路120控制器110能够采集第一扬声器104的驱动电压,通过将驱动电压与电压阈值进行比较,对第一扬声器104是否存在过压问题进行检测,并在第一扬声器104处于过压状态下,停止向第一扬声器104输出信号进行驱动,起到对第一扬声器104进行过压保护的效果。In the embodiment of the present application, the sampling circuit 120 is connected between the first speaker 104 and the controller 110. Through the sampling circuit 120, the controller 110 can collect the driving current of the first speaker 104 and compare the driving current with the current threshold. The first speaker 104 detects whether there is an overcurrent problem, and when the first speaker 104 is in an overcurrent state, it stops outputting signals to the first speaker 104 to drive, thus achieving the effect of overcurrent protection for the first speaker 104 . The controller 110 can collect the driving voltage of the first speaker 104 through the sampling circuit 120, compare the driving voltage with the voltage threshold, detect whether there is an overvoltage problem in the first speaker 104, and detect when the first speaker 104 is in an overvoltage state. , the signal output to the first speaker 104 is stopped for driving, thereby achieving the effect of over-voltage protection for the first speaker 104 .

本申请实施例中,采样电路120连接与第二扬声器108和控制器110之间,通过采样电路120控制器110能够采集第二扬声器108的驱动电流,通过将驱动电流与电流阈值进行比较,对第二扬声器108是否存在过流问题进行检测,并在第二扬声器108处于过流状态下,停止向第二扬声器108输出信号进行驱动,起到对第二扬声器108进行过流保护的效果。通过采样电路120控制器110能够采集第二扬声器108的驱动电压,通过将驱动电压与电压阈值进行比较,对第二扬声器108是否存在过压问题进行检测,并在第二扬声器108处于过压状态下,停止向第二扬声器108输出信号进行驱动,起到对第二扬声器108进行过压保护的效果。In the embodiment of the present application, the sampling circuit 120 is connected between the second speaker 108 and the controller 110. Through the sampling circuit 120, the controller 110 can collect the driving current of the second speaker 108 and compare the driving current with the current threshold. The second speaker 108 detects whether there is an over-current problem, and when the second speaker 108 is in an over-current state, it stops outputting signals to the second speaker 108 to drive, thus achieving the effect of over-current protection for the second speaker 108 . The controller 110 can collect the driving voltage of the second speaker 108 through the sampling circuit 120, and detect whether there is an overvoltage problem in the second speaker 108 by comparing the driving voltage with the voltage threshold, and detect when the second speaker 108 is in an overvoltage state. , the signal output to the second speaker 108 is stopped for driving, thereby achieving the effect of over-voltage protection for the second speaker 108 .

本申请实施例中,电子设备100通过采样电路120能够采集第一扬声器104的驱动电流或驱动电压,从而对第一扬声器104进行过流保护或过压保护。电子设备100通过采样电路120能够采集第二扬声器108的驱动电流或驱动电压,从而对第二扬声器108进行过流保护或过压保护。In the embodiment of the present application, the electronic device 100 can collect the driving current or driving voltage of the first speaker 104 through the sampling circuit 120, so as to provide over-current protection or over-voltage protection for the first speaker 104. The electronic device 100 can collect the driving current or driving voltage of the second speaker 108 through the sampling circuit 120 to provide over-current protection or over-voltage protection for the second speaker 108 .

本申请实施例中,通过控制器110与采样电路120采集第一扬声器104的驱动电流或驱动电压,以及采集第二扬声器108的驱动电流或驱动电压,使功率放大器无需采集第一扬声器104和第二扬声器108中任一个的驱动电流或驱动电压,减少功率放大器的算力消耗,还提高了第一扬声器104和第二扬声器108的运行稳定性。In the embodiment of the present application, the controller 110 and the sampling circuit 120 collect the driving current or driving voltage of the first speaker 104 and the driving current or driving voltage of the second speaker 108, so that the power amplifier does not need to collect the first speaker 104 and the driving voltage of the second speaker 108. The driving current or driving voltage of either of the two speakers 108 reduces the computing power consumption of the power amplifier and also improves the operating stability of the first speaker 104 and the second speaker 108 .

在本申请的一些实施例中,控制器110与功率放大器电连接,用于向功率放大器输出音频信号。In some embodiments of the present application, the controller 110 is electrically connected to the power amplifier and configured to output audio signals to the power amplifier.

本申请实施例中,控制器110与功率放大器电连接,控制器110能够向功率放大器输出音频信号,即通过控制器110向功率放大器输出音频信号,从而控制功率放大器向第一扬声器104和第二扬声器108输出驱动信号,以对第一扬声器104和第二扬声器108进行驱动。In the embodiment of the present application, the controller 110 is electrically connected to the power amplifier, and the controller 110 can output an audio signal to the power amplifier, that is, the controller 110 outputs an audio signal to the power amplifier, thereby controlling the power amplifier to transmit audio signals to the first speaker 104 and the second speaker 104 . The speaker 108 outputs a driving signal to drive the first speaker 104 and the second speaker 108 .

本申请实施例中,控制器110能够向功率放大器输出数字音频信号,功率放大器在接收到数字音频信号的情况下,将数字音频信号转换为模拟音频信号,并通过模拟音频信号驱动第一扬声器104和第二扬声器108。In the embodiment of the present application, the controller 110 can output a digital audio signal to the power amplifier. When the power amplifier receives the digital audio signal, it converts the digital audio signal into an analog audio signal, and drives the first speaker 104 through the analog audio signal. and second speaker 108.

本申请实施例中,通过控制器110向功率放大器输出音频信号,使功率放大器能够同步驱动第一扬声器104和第二扬声器108同步输出音频,进一步降低了功率放大器的算力需求。In the embodiment of the present application, the controller 110 outputs audio signals to the power amplifier, so that the power amplifier can synchronously drive the first speaker 104 and the second speaker 108 to output audio synchronously, further reducing the computing power requirements of the power amplifier.

在本申请的一些实施例中,控制器110与开关件106电连接,控制开关件106的通断状态。In some embodiments of the present application, the controller 110 is electrically connected to the switch component 106 and controls the on-off state of the switch component 106 .

本申请实施例中,电子设备100包括开关件106,开关件106的通断状态能够控制电子设备100在第一工作状态和第二工作状态之间进行切换,控制器110连接至开关件106的控制端,控制器110通过控制信号能够调整开关件106的通断状态。In the embodiment of the present application, the electronic device 100 includes a switch 106. The on-off state of the switch 106 can control the electronic device 100 to switch between the first working state and the second working state. The controller 110 is connected to the switch 106. On the control side, the controller 110 can adjust the on-off state of the switch member 106 through control signals.

示例性地,开关件106为2切4开关的情况下,在电子设备100处于第一工作状态,第一静触点A1与第二动触点B2电连接,第二静触点A2与第三动触点B3电连接;电子设备100处于第二工作状态下,第一静触点A1与第一动触点B1电连接,第二静触点A2与第四动触点B4电连接。For example, when the switch member 106 is a 2-to-4 switch, when the electronic device 100 is in the first working state, the first static contact A1 is electrically connected to the second movable contact B2, and the second static contact A2 is electrically connected to the second movable contact B2. The three movable contacts B3 are electrically connected; when the electronic device 100 is in the second working state, the first static contact A1 is electrically connected to the first movable contact B1, and the second static contact A2 is electrically connected to the fourth movable contact B4.

示例性地,开关件106为连接在第二扬声器108和功率放大器之间的开关的情况下,在电子设备100处于第一工作状态,控制开关件106导通,使第二扬声器108能够输出与第一扬声器104相位相反的声波。在电子设备100处于第二工作状态,控制开关件106断开。For example, if the switch 106 is a switch connected between the second speaker 108 and the power amplifier, when the electronic device 100 is in the first working state, the switch 106 is controlled to be turned on so that the second speaker 108 can output the The first speaker 104 generates sound waves with opposite phases. When the electronic device 100 is in the second working state, the switch member 106 is controlled to be turned off.

本申请实施例中,通过控制器110控制开关件106的通断状态,能够配合控制器110向功率放大器输出音频信号,从而对第二扬声器108是否输出声波对第一扬声器104输出的声波进行反相抵消进行控制,提高控制的准确性。In the embodiment of the present application, the on-off state of the switch 106 is controlled by the controller 110, and the controller 110 can be used to output an audio signal to the power amplifier, so as to determine whether the second speaker 108 outputs a sound wave to reflect the sound wave output by the first speaker 104. Control by offsetting each other to improve control accuracy.

在本申请的一些实施例中,在控制器110通过控制开关件106的通断状态使电子设备100切换至第一工作状态或第二工作状态后,控制器110向功率放大器输出音频信号,功率放大器基于音频信号向第一扬声器104和第二扬声器108输出驱动信号。In some embodiments of the present application, after the controller 110 switches the electronic device 100 to the first working state or the second working state by controlling the on-off state of the switch 106, the controller 110 outputs an audio signal to the power amplifier, and the power The amplifier outputs drive signals to the first speaker 104 and the second speaker 108 based on the audio signal.

本申请实施例中,控制器110能够控制开关件106调整通断状态,从而使电子设备100在第一工作状态和第二工作状态之间切换,在控制器110调整电子设备100的工作状态之后,控制器110向功率放大器输出音频信号,使第一扬声器104和第二扬声器108按照第一工作状态或第二工作状态输出声波。In the embodiment of the present application, the controller 110 can control the switch 106 to adjust the on-off state, thereby switching the electronic device 100 between the first working state and the second working state. After the controller 110 adjusts the working state of the electronic device 100 , the controller 110 outputs an audio signal to the power amplifier, so that the first speaker 104 and the second speaker 108 output sound waves according to the first working state or the second working state.

示例性地,控制器能够用于电子设备运行,电子设备的控制方法,用于控制器,图6示出了本申请的一些实施例提供的电子设备的控制方法的流程图,如图6所示,电子设备的控制方法包括:Exemplarily, the controller can be used to run the electronic device, and the control method of the electronic device is used for the controller. Figure 6 shows a flow chart of the control method of the electronic device provided by some embodiments of the present application, as shown in Figure 6 According to the instructions, the control methods of electronic equipment include:

步骤602,判断音频通路是否打开请求应答,判断结果为是则执行步骤604,判断结果为否则结束;Step 602: Determine whether the audio channel is opened to request a response. If the judgment result is yes, step 604 is executed. If the judgment result is otherwise, the process ends;

本申请实施例中,控制器判断是否控制功率放大器运行的请求。示例性地,在控制器接收到开启功率放大器的请求的情况下,响应于该请求,则控制功率放大器运行,则控制器执行步骤604,否则结束流程。In this embodiment of the present application, the controller determines whether to control the request to operate the power amplifier. For example, if the controller receives a request to turn on the power amplifier and responds to the request, the power amplifier is controlled to run, and the controller executes step 604, otherwise the process ends.

步骤604,判断上扬通路是否打开请求应答,判断结果为是则执行步骤606,判断结果为否则结束;Step 604: Determine whether the upward path is opened to request a response. If the judgment result is yes, step 606 is executed. If the judgment result is otherwise, the process ends;

本申请实施例中,控制器判断是否接收到控制扬声器运行的请求。示例性地,控制器接收到控制扬声器开启的请求,例如:通话请求、视频播放请求等,响应于该请求,则控制器执行步骤606,否则结束流程。In this embodiment of the present application, the controller determines whether a request to control the operation of the speaker is received. For example, the controller receives a request to control turning on the speaker, such as a call request, a video playback request, etc., and in response to the request, the controller executes step 606, otherwise the process ends.

步骤606,判断是否为防漏音模式,判断结果为是则执行步骤608,判断结果为否执行步骤610;Step 606, determine whether it is the anti-sound leakage mode. If the determination result is yes, execute step 608; if the determination result is no, execute step 610;

需要说明的是,防漏音模式为上述任一实施例中的第二模式,其他模式为第一模式,例如:其他模式为外放模式。It should be noted that the sound leakage prevention mode is the second mode in any of the above embodiments, and the other modes are the first mode. For example, the other modes are the external amplifier mode.

步骤608,控制开关件切换至第一开关状态;Step 608, control the switch member to switch to the first switch state;

本申请实施例中,开关件处于第一开关状态下,电子设备运行在第一工作状态;In the embodiment of the present application, the switch member is in the first switching state, and the electronic device runs in the first working state;

步骤610,控制开关件切换至第二开关状态;Step 610, control the switch member to switch to the second switch state;

本申请实施例中,开关件处于第二开关状态下,电子设备运行在第二工作状态;In the embodiment of the present application, the switch member is in the second switching state, and the electronic device operates in the second working state;

步骤612,控制器发送音频数据;Step 612, the controller sends audio data;

步骤614,判断是否应答结束,判断结果为是则执行步骤616,判断结果为否则结束;Step 614, determine whether the response is completed. If the determination result is yes, execute step 616. If the determination result is otherwise, the process ends;

步骤616,恢复初始开关状态;Step 616, restore the initial switch state;

示例性地,初始开关状态可以为第一开关状态,也可以为第二开关状态,还可以为断开状态。For example, the initial switch state may be the first switch state, the second switch state, or the off state.

步骤618,控制器检测电流和/或电压;Step 618, the controller detects current and/or voltage;

步骤620,判断是否过流或过压,判断结果为是则执行步骤622,判断结果为否则返回执行步骤618;Step 620, determine whether there is overcurrent or overvoltage. If the determination result is yes, execute step 622. If the determination result is otherwise, return to step 618;

步骤622,降低输出电压和/或输出电流。Step 622: Reduce the output voltage and/or output current.

本申请实施例中,在确定音频通路打开请求应答,且上扬通路打开请求应答,则确定电子设备100需要输出音频。判断电子设备100的音频输出模式,在电子设备100处于防漏音模式下,控制开关件106切换至第二开关状态,使第二扬声器108输出第二声波,对第一扬声器104输出的第一声波进行反相抵消,在电子设备100未处于防漏音模式下,控制开关件106切换至第一开关状态,使第二扬声器108和第一扬声器104同步输出第一声波。在应答结束后控制开关件106恢复初始开关状态,等待下次音频通路打开请求应答和上扬通路打开请求应答。In the embodiment of the present application, after it is determined that the audio path opening request response is received, and the uplink path opening request response is determined, it is determined that the electronic device 100 needs to output audio. Determine the audio output mode of the electronic device 100. When the electronic device 100 is in the sound leakage prevention mode, control the switch member 106 to switch to the second switch state, so that the second speaker 108 outputs the second sound wave, and the first speaker 104 outputs the first sound wave. The sound waves cancel each other out. When the electronic device 100 is not in the sound leakage prevention mode, the switch member 106 is controlled to switch to the first switch state, so that the second speaker 108 and the first speaker 104 output the first sound wave synchronously. After the response is completed, the control switch 106 returns to the initial switch state and waits for the next audio path opening request response and the uplink path opening request response.

本申请实施例中,在开关件106切换至第一开关状态或第二开关状态之后,控制器持续检测第一扬声器104和第二扬声器108的驱动电流和驱动电压,并据此判断第一扬声器104和第二扬声器108是否存在过流和/或过压,在检测到存在过流和/或过压时,降低输出电流和/或输出电压。In the embodiment of the present application, after the switch 106 is switched to the first switch state or the second switch state, the controller continuously detects the driving current and driving voltage of the first speaker 104 and the second speaker 108, and determines the first speaker accordingly. 104 and the second speaker 108 to determine whether overcurrent and/or overvoltage exist. When overcurrent and/or overvoltage are detected, the output current and/or output voltage are reduced.

本申请实施例中,电子设备100能够根据音频输出模式自动调整开关件106的开关状态,控制第二扬声器108输出的声波对第一扬声器104输出的声波进行正相叠加或反相抵消,从而实现电子设备100的防漏音模式和外放模式的切换。并且在第一扬声器104和第二扬声器108输出声波时,能够对第一扬声器104和第二扬声器108的驱动电流和驱动电压进行检测,从而对第一扬声器104和第二扬声器108进行过压保护和过流保护。In the embodiment of the present application, the electronic device 100 can automatically adjust the switching state of the switch 106 according to the audio output mode, and control the sound wave output by the second speaker 108 to superpose or cancel the sound wave output by the first speaker 104 in positive phase or in reverse phase, thereby achieving Switching between the sound leakage prevention mode and the external sound mode of the electronic device 100 . And when the first speaker 104 and the second speaker 108 output sound waves, the driving current and driving voltage of the first speaker 104 and the second speaker 108 can be detected, so as to provide overvoltage protection to the first speaker 104 and the second speaker 108 and overcurrent protection.

示例性地,控制器110向开关件106传输开关控制信号,对开关件106进行控制,控制器110向功率放大器102传输I2S(Inter—IC Sound,集成电路内置音频总线)数字音频信号,以使功率放大器102输出驱动信号。For example, the controller 110 transmits a switch control signal to the switch 106 to control the switch 106, and the controller 110 transmits an I2S (Inter-IC Sound, integrated circuit built-in audio bus) digital audio signal to the power amplifier 102, so that The power amplifier 102 outputs a drive signal.

本申请实施例中,控制器110控制开关件106切换至与第一工作状态或第二工作状态相匹配的通断状态下,再向功率放大器102输出音频信号,使功率放大器102能够驱动第一扬声器104和第二扬声器108运行,使电子设备运行在第一工作状态下,第一扬声器104和第二扬声器108能够输出反相的音波,对输出音波进行防漏音处理。In the embodiment of the present application, the controller 110 controls the switch 106 to switch to an on-off state matching the first working state or the second working state, and then outputs the audio signal to the power amplifier 102 so that the power amplifier 102 can drive the first working state. The loudspeaker 104 and the second loudspeaker 108 operate so that the electronic device runs in the first working state. The first loudspeaker 104 and the second loudspeaker 108 can output anti-phase sound waves and perform sound leakage prevention processing on the output sound waves.

在本申请的一些实施例中,控制器110的第一采样端112与第一扬声器104的正极电连接,用于获取第一扬声器104的第一驱动电流,控制器110用于根据第一驱动电流对第一扬声器104进行过流过压保护;In some embodiments of the present application, the first sampling terminal 112 of the controller 110 is electrically connected to the positive electrode of the first speaker 104 for obtaining the first driving current of the first speaker 104, and the controller 110 is used for obtaining the first driving current according to the first driving current. The current protects the first speaker 104 from overcurrent and overvoltage;

采样电路包括第一电阻R1,第一电阻R1的第一端与功率放大器102电连接,第一电阻R1的第二端与第一扬声器104电连接;The sampling circuit includes a first resistor R1, a first end of the first resistor R1 is electrically connected to the power amplifier 102, and a second end of the first resistor R1 is electrically connected to the first speaker 104;

控制器110的第一采样端112包括第一检测通道1122和第二检测通道1124,第一检测通道1122与第一电阻R1的第一端电连接,第一检测通道1122用于采集第一电压值,第二检测通道1124与第一电阻R1的第二端电连接,第二检测通道1124用于采集第二电压值;The first sampling terminal 112 of the controller 110 includes a first detection channel 1122 and a second detection channel 1124. The first detection channel 1122 is electrically connected to the first end of the first resistor R1, and the first detection channel 1122 is used to collect the first voltage. value, the second detection channel 1124 is electrically connected to the second end of the first resistor R1, and the second detection channel 1124 is used to collect the second voltage value;

控制器110用于根据第一电压值和第二电压值确定第一扬声器104的第一驱动电流。The controller 110 is used to determine the first driving current of the first speaker 104 according to the first voltage value and the second voltage value.

本申请实施例中,控制器110包括与第一扬声器104的正极电连接的第一采样端112,控制器110通过第一采样端112能够获取第一扬声器104的第一驱动电流,控制器110还能够通过该第一驱动电流对第一扬声器104进行过流过压保护。In the embodiment of the present application, the controller 110 includes a first sampling terminal 112 electrically connected to the positive electrode of the first speaker 104. The controller 110 can obtain the first driving current of the first speaker 104 through the first sampling terminal 112. The controller 110 The first driving current can also be used to protect the first speaker 104 from overcurrent and overvoltage.

具体来说,采样电路包括连接在功率放大器102与第一扬声器104之间的第一电阻R1,控制器110通过第一采样端112的第一检测通道1122和第二检测通道1124能够采集第一电压值和第二电压值,并根据第一电压值和第二电压值,计算得到第一扬声器104的第一驱动电流,从而通过该第一驱动电流对第一扬声器104进行过流过压保护。本申请实施例中,控制器110的第一采样端112包括第一检测通道1122和第二检测通道1124,通过以下公式(1)计算第一扬声器104的第一驱动电流:Specifically, the sampling circuit includes a first resistor R1 connected between the power amplifier 102 and the first speaker 104. The controller 110 can collect the first detection channel 1122 and the second detection channel 1124 of the first sampling terminal 112. voltage value and the second voltage value, and calculate the first driving current of the first speaker 104 based on the first voltage value and the second voltage value, thereby performing overcurrent and overvoltage protection on the first speaker 104 through the first driving current. . In the embodiment of the present application, the first sampling terminal 112 of the controller 110 includes a first detection channel 1122 and a second detection channel 1124, and the first driving current of the first speaker 104 is calculated through the following formula (1):

I1=(V2-V1)/R1;(1)I 1 =(V 2 -V 1 )/R 1 ; (1)

其中,I1为第一驱动电流,V1为第一检测通道1122采集到的电压值,V2为第二检测通道1124采集到的电压值,R1为第一电阻R1的阻值。Among them, I 1 is the first driving current, V 1 is the voltage value collected by the first detection channel 1122, V 2 is the voltage value collected by the second detection channel 1124, and R 1 is the resistance value of the first resistor R1.

示例性地,第一电阻R1设置在功率放大器102的正极与第一扬声器104的正极之间。Illustratively, the first resistor R1 is disposed between the positive electrode of the power amplifier 102 and the positive electrode of the first speaker 104 .

本申请实施例中,通过该第一驱动电流能够对第一扬声器104进行过流保护。通过将检测到的第一驱动电流与第一电流阈值进行比对,能够确定第一扬声器104是否处于过流状态,在第一驱动电流大于第一电流阈值时,降低向第一扬声器104输出的电流值,从而对第一扬声器104进行过流保护。In this embodiment of the present application, the first driving current can be used to protect the first speaker 104 from overcurrent. By comparing the detected first driving current with the first current threshold, it can be determined whether the first speaker 104 is in an overcurrent state. When the first driving current is greater than the first current threshold, the output power to the first speaker 104 is reduced. current value, thereby providing over-current protection to the first speaker 104.

本申请实施例中,通过以下公式(2)计算第一扬声器104的第一驱动电压:In the embodiment of the present application, the first driving voltage of the first speaker 104 is calculated through the following formula (2):

V扬声器1=IR扬声器1;(2)V speaker 1 = I R speaker 1 ; (2)

其中,V扬声器1为第一驱动电压,R扬声器1为第一扬声器的阻抗,I1为第一驱动电流。Among them, V speaker 1 is the first drive voltage, R speaker 1 is the impedance of the first speaker, and I 1 is the first drive current.

本申请实施例中,通过以下公式(3)计算第一扬声器的阻抗:In the embodiment of this application, the impedance of the first speaker is calculated through the following formula (3):

R扬声器1=|V2-V1|/I1;(3)R speaker 1 =|V 2 -V1|/I 1 ; (3)

其中,R扬声器1为第一扬声器104的阻抗,V1为第一检测通道1122采集到的电压值,V2为第二检测通道1124采集到的电压值,I1为第一驱动电流。Among them, R speaker 1 is the impedance of the first speaker 104, V 1 is the voltage value collected by the first detection channel 1122, V 2 is the voltage value collected by the second detection channel 1124, and I 1 is the first driving current.

本申请实施例中,控制器110的第二采样端114包括第三检测通道1142和第四检测通道1144,通过以下公式(4)计算第二扬声器108的第一驱动电流:In the embodiment of the present application, the second sampling terminal 114 of the controller 110 includes a third detection channel 1142 and a fourth detection channel 1144, and the first driving current of the second speaker 108 is calculated through the following formula (4):

I2=(V3-V4)/R2;(4)I 2 =(V 3 -V 4 )/R 2 ; (4)

其中,I2为第二驱动电流,V3为第三检测通道1142采集到的电压值,V4为第四检测通道1144采集到的电压值,R2为第二电阻R2的阻值。Among them, I 2 is the second driving current, V 3 is the voltage value collected by the third detection channel 1142, V 4 is the voltage value collected by the fourth detection channel 1144, and R 2 is the resistance value of the second resistor R2.

示例性地,第二电阻R2设置在开关件106与第二扬声器108的正极之间。Illustratively, the second resistor R2 is disposed between the switch member 106 and the positive electrode of the second speaker 108 .

本申请实施例中,通过该第二驱动电流能够对第二扬声器108进行过流保护。通过将检测到的第二驱动电流与第二电流阈值进行比对,能够确定第二扬声器108是否处于过流状态,在第二驱动电流大于第二电流阈值时,降低向第二扬声器108输出的电流值,从而对第二扬声器108进行过流保护。In this embodiment of the present application, the second driving current can provide over-current protection to the second speaker 108 . By comparing the detected second driving current with the second current threshold, it can be determined whether the second speaker 108 is in an overcurrent state. When the second driving current is greater than the second current threshold, the output power to the second speaker 108 is reduced. current value, thereby providing over-current protection to the second speaker 108 .

本申请实施例中,通过以下公式(5)计算第二扬声器108的第二驱动电压:In the embodiment of the present application, the second driving voltage of the second speaker 108 is calculated through the following formula (5):

V扬声器2=IR扬声器2;(5)V speaker 2 = I 2 × R speaker 2 ; (5)

其中,V扬声器2为第二驱动电压,R扬声器2为第二扬声器的阻抗,I2为第二驱动电流。Among them, V speaker 2 is the second drive voltage, R speaker 2 is the impedance of the second speaker, and I 2 is the second drive current.

本申请实施例中,通过以下公式(6)计算第二扬声器的阻抗:In the embodiment of this application, the impedance of the second speaker is calculated through the following formula (6):

R扬声器2=|V3-V4|/I2;(6)R speaker 2 = |V 3 -V 4 |/I 2 ; (6)

其中,R扬声器2为第二扬声器108的阻抗,V3为第三检测通道1142采集到的电压值,V4为第四检测通道1144采集到的电压值,I2为第二驱动电流。Among them, R speaker 2 is the impedance of the second speaker 108, V 3 is the voltage value collected by the third detection channel 1142, V 4 is the voltage value collected by the fourth detection channel 1144, and I 2 is the second driving current.

本申请实施例中,通过将检测到的第二驱动电压与第二电压阈值进行比对,能够确定第二扬声器108是否处于过压状态,在第二驱动电压大于第二电压阈值时,降低向第二扬声器108输出的电压值,从而对第二扬声器108进行过压保护。In the embodiment of the present application, by comparing the detected second driving voltage with the second voltage threshold, it can be determined whether the second speaker 108 is in an overvoltage state. When the second driving voltage is greater than the second voltage threshold, the voltage is reduced to The voltage value output by the second speaker 108 is used to protect the second speaker 108 from overvoltage.

本申请实施例中,通过将控制器的第二采样端114中的第三检测通道1142和第四检测通道1144连接在第二电阻R2的两端,再根据采集到的第三电压值和第四电压值确定第二扬声器108的第二驱动电流,从而使控制器110能够基于该第二驱动电流对第二扬声器108进行过流过压保护。In the embodiment of the present application, the third detection channel 1142 and the fourth detection channel 1144 in the second sampling terminal 114 of the controller are connected to both ends of the second resistor R2, and then according to the collected third voltage value and the third The four voltage values determine the second driving current of the second speaker 108, thereby enabling the controller 110 to perform overcurrent and overvoltage protection on the second speaker 108 based on the second driving current.

如图5所示,控制器110的第一采样端112包括第一检测通道1122和第二检测通道1124,控制器110的第二采样端114包括第三检测通道1142和第四检测通道1144。其中,第一检测通道1122、第二检测通道1124、第三检测通道1142和第四检测通道1144上均连接有第三电阻R3。As shown in FIG. 5 , the first sampling terminal 112 of the controller 110 includes a first detection channel 1122 and a second detection channel 1124 , and the second sampling terminal 114 of the controller 110 includes a third detection channel 1142 and a fourth detection channel 1144 . Among them, the first detection channel 1122, the second detection channel 1124, the third detection channel 1142 and the fourth detection channel 1144 are all connected to a third resistor R3.

在本申请的一些实施例中,图7示出了本申请的一些实施例提供的电子设备的电路图之五,如图7所示,功率放大器102的数量为至少两个,第一扬声器104的数量、第二扬声器108的数量与功率放大器102的数量相匹配;其中,至少两个功率放大器102中的每个功率放大器102均与一个第一扬声器104电连接,且每个功率放大器102通过开关件106与一个第二扬声器108电连接。In some embodiments of the present application, FIG. 7 shows the fifth circuit diagram of an electronic device provided by some embodiments of the present application. As shown in FIG. 7 , the number of power amplifiers 102 is at least two, and the first speaker 104 The number of second speakers 108 matches the number of power amplifiers 102; wherein each of the at least two power amplifiers 102 is electrically connected to one first speaker 104, and each power amplifier 102 passes through a switch. Element 106 is electrically connected to a second speaker 108 .

本申请实施例中,电子设备100中设置至少两个功率放大器102,每个功率放大器102均连接一个第一扬声器104,且通过开关件106连接一个第二扬声器108。其中,功率放大器102的数量为N,则第一扬声器104和第二扬声器108的总数为2N,每个功率放大器102均用于驱动一个第一扬声器104和一个第二扬声器108。In this embodiment of the present application, at least two power amplifiers 102 are provided in the electronic device 100 , and each power amplifier 102 is connected to a first speaker 104 and connected to a second speaker 108 through a switch 106 . Wherein, the number of power amplifiers 102 is N, so the total number of first speakers 104 and second speakers 108 is 2N, and each power amplifier 102 is used to drive one first speaker 104 and one second speaker 108 .

如图7所示,示例性地,功率放大器102的数量为两个,第一扬声器104的数量也为两个,第二扬声器108的数量也为两个,开关件106的数量也为两个,每个功率放大器102均连接一个第一扬声器104和一个开关件106,每个开关件106均连接一个第二扬声器108。As shown in FIG. 7 , for example, the number of power amplifiers 102 is two, the number of first speakers 104 is also two, the number of second speakers 108 is also two, and the number of switching elements 106 is also two. , each power amplifier 102 is connected to a first speaker 104 and a switch element 106, and each switch element 106 is connected to a second speaker 108.

本申请实施例中,在电子设备100中设置多个功率放大器102,且每个功率放大器102均用于驱动一个第一扬声器104和第二扬声器108,从而使电子设备100中的多个第二扬声器108均能够通过开关切换正负极的方式,对相应的第一扬声器104输出的第一声波进行正相叠加或反相抵消。In the embodiment of the present application, multiple power amplifiers 102 are provided in the electronic device 100, and each power amplifier 102 is used to drive a first speaker 104 and a second speaker 108, so that multiple second speakers in the electronic device 100 Each of the speakers 108 can switch the positive and negative electrodes through a switch to perform positive phase superposition or negative phase cancellation on the first sound wave output by the corresponding first speaker 104 .

在本申请的一些实施例中,图8示出了本申请的一些实施例提供的电子设备的电路图之六,如图8所示,第一扬声器104的数量为至少两个,至少两个第一扬声器104均与功率放大器102电连接。In some embodiments of the present application, FIG. 8 shows the sixth circuit diagram of the electronic device provided by some embodiments of the present application. As shown in FIG. 8 , the number of the first speakers 104 is at least two, and at least two second speakers 104 are provided. Each speaker 104 is electrically connected to the power amplifier 102 .

本申请实施例中,电子设备100中包括至少两个第一扬声器104,且至少两个第一扬声器104均与功率放大器102电连接。需要说明的是,通过一个功率放大器102同步驱动至少两个第一扬声器104和一个第二扬声器108,在需要实现防漏音功能时,通过第二扬声器108输出第二声波对至少两个第一扬声器104输出的第一声波进行反相抵消。In this embodiment of the present application, the electronic device 100 includes at least two first speakers 104 , and the at least two first speakers 104 are both electrically connected to the power amplifier 102 . It should be noted that at least two first speakers 104 and one second speaker 108 are driven synchronously through a power amplifier 102. When the sound leakage prevention function needs to be implemented, the second sound wave is output through the second speaker 108 to at least two first speakers. The first sound wave output by the speaker 104 is inverted and canceled.

如图8所示,示例性地,在电子设备100中设置一个功率放大器102、两个第一扬声器104和一个第二扬声器108,功率放大器102通过一个开关件106与一个第一扬声器104电连接,且功率放大器102与至少两个第一扬声器104电连接。As shown in FIG. 8 , for example, a power amplifier 102 , two first speakers 104 and a second speaker 108 are provided in the electronic device 100 . The power amplifier 102 is electrically connected to the first speaker 104 through a switch 106 , and the power amplifier 102 is electrically connected to at least two first speakers 104 .

本申请实施例中,在电子设备100中设置功率放大器102,且功率放大器102均用于驱动至少两个第一扬声器104和第二扬声器108,从而使电子设备100中的第二扬声器108能够通过开关切换正负极的方式,对至少两个第一扬声器104输出的第一声波进行正相叠加或反相抵消。In the embodiment of the present application, a power amplifier 102 is provided in the electronic device 100, and the power amplifiers 102 are used to drive at least two first speakers 104 and a second speaker 108, so that the second speaker 108 in the electronic device 100 can pass By switching the positive and negative poles, the first sound waves output by the at least two first speakers 104 are added in positive phase or canceled in reverse phase.

在本申请的一些实施例中,图9示出了本申请的一些实施例提供的电子设备的电路图之七,如图9所示,第二扬声器108的数量为至少两个,至少两个第二扬声器108均通过开关件106与功率放大器102电连接。In some embodiments of the present application, FIG. 9 shows the seventh circuit diagram of the electronic device provided by some embodiments of the present application. As shown in FIG. 9 , the number of the second speakers 108 is at least two, and at least two second speakers 108 are used. The two speakers 108 are both electrically connected to the power amplifier 102 through the switch 106 .

本申请实施例中,电子设备100中包括至少两个第二扬声器108,且至少两个第二扬声器108均通过开关件106与功率放大器102电连接。需要说明的是,通过一个功率放大器102同步驱动第一扬声器104和至少两个第二扬声器108,在需要实现防漏音功能时,通过至少两个第二扬声器108输出第二声波对第一扬声器104输出的第一声波进行反相抵消。In the embodiment of the present application, the electronic device 100 includes at least two second speakers 108 , and the at least two second speakers 108 are electrically connected to the power amplifier 102 through the switch 106 . It should be noted that the first speaker 104 and at least two second speakers 108 are driven synchronously through a power amplifier 102. When the sound leakage prevention function needs to be implemented, the second sound waves are outputted through the at least two second speakers 108 to the first speaker. The first sound wave output by 104 is inverted and canceled.

示例性地,至少两个第二扬声器108分别对应至少两个第二出音孔138,至少两个第二出音孔138分别设置在电子设备100的不同侧壁,从而使至少两个第二扬声器108能够在不同方向上对第一扬声器104输出的第一声波进行正相叠加或反相抵消。Exemplarily, at least two second speakers 108 respectively correspond to at least two second sound holes 138 , and the at least two second sound holes 138 are respectively disposed on different side walls of the electronic device 100 , so that the at least two second sound holes 138 The speaker 108 can perform positive phase superposition or anti-phase cancellation on the first sound wave output by the first speaker 104 in different directions.

例如:第二出音孔138的数量为三个,则三个第二出音孔138分别设置在中框134的不同边框上。For example, if the number of the second sound holes 138 is three, then the three second sound holes 138 are respectively disposed on different frames of the middle frame 134 .

例如:第二出音孔138的数量为两个,则其中一个第二出音孔138设置在中框134上,另一个第二出音孔138设置在电子设备100的背板上。For example, if there are two second sound holes 138 , one of the second sound holes 138 is disposed on the middle frame 134 , and the other second sound hole 138 is disposed on the back panel of the electronic device 100 .

示例性地,在第二扬声器108的数量为至少两个的情况下,开关件106的数量与第二扬声器108的数量相同,且至少两个开关件106分别连接在至少两个第二扬声器108与功率放大器102之间。For example, when the number of second speakers 108 is at least two, the number of switch members 106 is the same as the number of second speakers 108 , and at least two switch members 106 are connected to at least two second speakers 108 respectively. and power amplifier 102.

示例性地,第二扬声器108的数量为N个,开关件106的数量为M个,N个第二扬声器108通过M个开关件106与功率放大器102电连接,其中,N和M均为正整数,且N≥M。For example, the number of second speakers 108 is N, the number of switch components 106 is M, and the N second speakers 108 are electrically connected to the power amplifier 102 through M switch components 106, where N and M are both positive. Integer, and N≥M.

如图9所示,示例性地,在电子设备100中设置一个功率放大器102、第一扬声器104和两个第二扬声器108,功率放大器102通过两个开关件106与两个第二扬声器108电连接,且功率放大器102与第一扬声器104电连接。As shown in FIG. 9 , for example, a power amplifier 102 , a first speaker 104 and two second speakers 108 are provided in the electronic device 100 . The power amplifier 102 is electrically connected to the two second speakers 108 through two switches 106 . connected, and the power amplifier 102 is electrically connected to the first speaker 104 .

本申请实施例中,在电子设备100中设置功率放大器102,且功率放大器102均用于驱动第一扬声器104和至少两个第二扬声器108,从而使电子设备100中的至少两个第二扬声器108能够通过开关切换正负极的方式,对第一扬声器104输出的第一声波进行正相叠加或反相抵消。In the embodiment of the present application, a power amplifier 102 is provided in the electronic device 100, and the power amplifiers 102 are used to drive the first speaker 104 and at least two second speakers 108, so that the at least two second speakers in the electronic device 100 108 can perform positive phase superposition or negative phase cancellation on the first sound wave output by the first speaker 104 by switching the positive and negative poles.

在本申请的一些实施例中,电子设备100还包括:面板132和中框134,面板132设置有第一出音孔136,第一出音孔136用于传输第一扬声器104输出的第一声波;中框134与面板132电连接,中框134设置有第二出音孔138,第二出音孔138用于传输第二扬声器108输出的第一声波或第二声波。In some embodiments of the present application, the electronic device 100 further includes: a panel 132 and a middle frame 134. The panel 132 is provided with a first sound hole 136. The first sound hole 136 is used to transmit the first sound output by the first speaker 104. Sound wave; the middle frame 134 is electrically connected to the panel 132. The middle frame 134 is provided with a second sound hole 138. The second sound hole 138 is used to transmit the first sound wave or the second sound wave output by the second speaker 108.

本申请实施例中,电子设备100包括面板132和中框134,通过将与第一扬声器104对应的第一出音孔136设置在面板132上,能够使用户在通过电子设备100进行语音通话时收听到第一扬声器104输出的第一声波,通过将与第一扬声器104对应的第一出音孔136设置在中框134上,使需要开启防漏音功能时,通过第二扬声器108输出第二声波对外漏的第一扬声器104输出的第一声波进行反相抵消,避免其他人员听到用户的通话内容。In the embodiment of the present application, the electronic device 100 includes a panel 132 and a middle frame 134. By arranging the first sound hole 136 corresponding to the first speaker 104 on the panel 132, the user can make a voice call through the electronic device 100. After listening to the first sound wave output by the first speaker 104, the first sound hole 136 corresponding to the first speaker 104 is provided on the middle frame 134, so that when the anti-sound leakage function needs to be turned on, the sound wave is output through the second speaker 108. The second sound wave inversely cancels the leaked first sound wave output by the first speaker 104 to prevent other people from hearing the user's call content.

示例性地,电子设备100还包括背板,在第二出音孔138的数量为多个的情况下,多个第二出音孔138可以分别设置在中框134和背板上,在不同方向上对第一扬声器104输出的第一声波进行反相抵消。Exemplarily, the electronic device 100 further includes a backplane. When the number of the second sound holes 138 is multiple, the plurality of second sound holes 138 can be respectively disposed on the middle frame 134 and the backplane. The first sound wave output by the first speaker 104 is inverted and canceled in the direction.

需要说明的是,由于在语音通话过程中,第一出音孔136与人耳对齐,通过第一出音孔136传输的第一声波能够直接进入人耳,在第二扬声器108输出反相的第二声波时,不会影响人耳收听第一扬声器104输出的第一声波。It should be noted that during the voice call, since the first sound hole 136 is aligned with the human ear, the first sound wave transmitted through the first sound hole 136 can directly enter the human ear, and the second speaker 108 outputs an inverted sound wave. When the second sound wave is generated, it will not affect the human ear to listen to the first sound wave output by the first speaker 104.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" or the like is intended to be incorporated into the description of the implementation. An example or example describes a specific feature, structure, material, or characteristic that is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管已经示出和描述了本申请的实施例,本领域的普通技术人员可以理解:在不脱离本申请的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本申请的范围由权利要求及其等同物限定。Although the embodiments of the present application have been shown and described, those of ordinary skill in the art will understand that various changes, modifications, substitutions and modifications can be made to these embodiments without departing from the principles and purposes of the present application. The scope of the application is defined by the claims and their equivalents.

Claims (10)

1. An electronic device, comprising:
a power amplifier;
the positive electrode of the first loudspeaker is electrically connected with the positive electrode of the output end of the power amplifier, and the negative electrode of the first loudspeaker is electrically connected with the negative electrode of the output end of the power amplifier;
and the second loudspeaker is electrically connected with the power amplifier, wherein the anode of the second loudspeaker is electrically connected with the cathode of the output end of the power amplifier when the electronic equipment is in the first working state, and the cathode of the second loudspeaker is electrically connected with the output anode of the power amplifier.
2. The electronic device of claim 1, wherein in the second operational state of the electronic device, the anode of the second speaker is electrically connected to the anode of the output of the power amplifier, and the cathode of the second speaker is electrically connected to the cathode of the output of the power amplifier.
3. The electronic device of claim 2, further comprising: a switch member, the switch member comprising:
the first stationary contact is electrically connected with the positive electrode of the output end of the power amplifier;
the second stationary contact is electrically connected with the negative electrode of the output end of the power amplifier;
a first movable contact electrically connected to the positive electrode of the second speaker;
the second movable contact is electrically connected with the negative electrode of the second loudspeaker;
a third movable contact electrically connected with the positive electrode of the second loudspeaker;
a fourth movable contact electrically connected to the negative electrode of the second speaker;
the first fixed contact is electrically connected with the second movable contact, and the second fixed contact is electrically connected with the third movable contact when the electronic equipment is in the first working state;
and when the electronic equipment is in the second working state, the first fixed contact is electrically connected with the first movable contact, and the second fixed contact is electrically connected with the fourth movable contact.
4. The electronic device of claim 1, further comprising: the first end of the switch piece is electrically connected with the negative electrode of the output end of the power amplifier, the second end of the switch piece is electrically connected with the positive electrode of the second loudspeaker, the third end of the switch piece is electrically connected with the positive electrode of the output end of the power amplifier, and the fourth end of the switch piece is electrically connected with the negative electrode of the second loudspeaker;
The electronic equipment is in a first working state, the first end and the second end of the switch piece are conducted, the third end and the fourth end of the switch piece are conducted, the electronic equipment is in a second working state, the first end and the second end of the switch piece are disconnected, and the third end and the fourth end of the switch piece are disconnected.
5. The electronic device of claim 3 or 4, further comprising: the controller is electrically connected with the first loudspeaker through the sampling circuit to acquire the driving current or the driving voltage of the first loudspeaker; and/or
The controller is electrically connected with the second loudspeaker through the sampling circuit so as to acquire the driving current or the driving voltage of the second loudspeaker.
6. The electronic device of claim 5, wherein the controller is electrically connected to the power amplifier for outputting an audio signal to the power amplifier.
7. The electronic device of claim 6, wherein the controller is electrically connected to the switch for controlling an on-off state of the switch.
8. The electronic device according to claim 7, wherein after the controller switches the electronic device to the first operation state or the second operation state by controlling an on-off state of the switching element, the controller outputs an audio signal to the power amplifier, and the power amplifier outputs driving signals to the first speaker and the second speaker based on the audio signal.
9. The electronic device of claim 5, wherein the electronic device comprises a memory device,
the first sampling end of the controller is electrically connected with the anode of the first loudspeaker and is used for obtaining a first driving current of the first loudspeaker, and the controller is used for carrying out overcurrent and overvoltage protection on the first loudspeaker according to the first driving current;
the sampling circuit comprises a first resistor, a first end of the first resistor is electrically connected with the power amplifier, and a second end of the first resistor is electrically connected with the first loudspeaker;
the first sampling end of the controller comprises a first detection channel and a second detection channel, the first detection channel is electrically connected with the first end of the first resistor, the first detection channel is used for collecting a first voltage value, the second detection channel is electrically connected with the second end of the first resistor, and the second detection channel is used for collecting a second voltage value;
the controller is configured to determine a first drive current of the first speaker based on the first voltage value and the second voltage value.
10. The electronic device of claim 5, wherein the electronic device comprises a memory device,
the second sampling end of the controller is electrically connected with the anode of the second loudspeaker and is used for acquiring a second driving current of the second loudspeaker; the controller is used for carrying out overcurrent and overvoltage protection on the second loudspeaker according to the second driving current;
The sampling circuit comprises a second resistor, a first end of the second resistor is electrically connected with the switch piece, and a second end of the second resistor is electrically connected with the second loudspeaker;
the second sampling end of the controller comprises a third detection channel and a fourth detection channel, the third detection channel is electrically connected with the first end of the second resistor, the fourth detection channel is used for collecting a third voltage value, the fourth detection channel is electrically connected with the second end of the second resistor, and the fourth detection channel is used for collecting a fourth voltage value;
the controller is configured to determine a second drive current for the second speaker based on the third voltage value and the fourth voltage value.
CN202311439629.1A 2023-11-01 2023-11-01 Electronic equipment Pending CN117354405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311439629.1A CN117354405A (en) 2023-11-01 2023-11-01 Electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311439629.1A CN117354405A (en) 2023-11-01 2023-11-01 Electronic equipment

Publications (1)

Publication Number Publication Date
CN117354405A true CN117354405A (en) 2024-01-05

Family

ID=89357443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311439629.1A Pending CN117354405A (en) 2023-11-01 2023-11-01 Electronic equipment

Country Status (1)

Country Link
CN (1) CN117354405A (en)

Similar Documents

Publication Publication Date Title
US8045726B2 (en) Noise-cancelling headphone
US8437812B2 (en) Headset with auxiliary input(s) for cell phone and/or other devices
EP0999721A2 (en) Device for controlling connection of built-in type ear-microphone for portable radio terminal
JP2010527541A (en) Communication device with ambient noise reduction function
US9620101B1 (en) Systems and methods for maintaining playback fidelity in an audio system with adaptive noise cancellation
WO2011153779A1 (en) Method and terminal for noise suppression using dual-microphone
KR101155892B1 (en) Audio unit of portable device and method of controlling the same
WO2011079570A1 (en) Terminal noise suppression device, method and communication terminal
JP3398699B2 (en) Mobile terminal device
CN203151729U (en) Multifunctional earphone
CN117354405A (en) Electronic equipment
CN208509242U (en) A kind of voice-grade channel switching realization circuit of digital walkie-talkie
CN108989948A (en) A kind of the voice-grade channel switching realization circuit and method of digital walkie-talkie
CN106373586A (en) Noise filtering circuit
KR101584345B1 (en) Ear Set and Acoustic Processing System Including The Same
US20170164091A1 (en) Electroacoustic Sound Transducer Unit and Earphone
CN209748649U (en) Double-channel audio communication circuit
CN101252743A (en) A multi-mode communication terminal, audio system and control method thereof
CN110771042B (en) Controlling switches in variable impedance elements
CN100484156C (en) Mobile communication terminal earphone microphone power supply device
US12261576B2 (en) Receiver control circuit and terminal
CN110430497B (en) Circuit for controlling microphone silence, earphone wire controller and earphone
KR101671275B1 (en) Four-pole earphone device and a control method
JP2845596B2 (en) Audio amplification circuit
CN101257685B (en) Multi-module communication terminal, audio system and control method thereof

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