Audio playing circuit and audio playing circuit control method

By using a first power amplifier unit and a second power amplifier unit to drive the speaker in the audio playback circuit, and switching the connection path through a switching unit, the problem of sound leakage during calls in full-screen devices is solved, achieving cost savings in hardware and optimization of circuit layout. At the same time, it provides privacy protection in earpiece mode and stereo effect in speaker mode.

CN115696142BActive Publication Date: 2025-12-16VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211362156.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-02
Publication Date
2025-12-16
Estimated Expiration
2042-11-02

AI Technical Summary

Technical Problem

Full-screen devices require multiple amplifiers to drive speakers during calls to prevent sound leakage, resulting in insufficient audio bus interfaces, tight circuit board layout, and increased hardware costs.

Method used

The first and second power amplifier units drive the first and second sound-emitting units respectively. The connection path is switched by the switching unit so that the first and second sound waves are out of phase in the earpiece mode to prevent sound leakage. In the external speaker mode, a stereo effect is achieved, saving the number of power amplifiers and reducing the occupation of audio bus interfaces.

Benefits of technology

By effectively utilizing one power amplifier to drive two sound units, hardware costs are reduced, circuit board layout space is minimized, and privacy protection is achieved in earpiece mode while stereo effect is achieved in speaker mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115696142B_ABST
    Figure CN115696142B_ABST
Patent Text Reader

Abstract

The application discloses an audio playing circuit, an audio playing circuit control method, an electronic device and a readable storage medium, and belongs to the field of audio power amplifiers, and comprises a first power amplifier unit, a second power amplifier unit, a first processing unit, a first switching unit, a first sound emitting unit, a second sound emitting unit and a third sound emitting unit; the first processing unit is connected with the first sound emitting unit through the first power amplifier unit and is connected with the input end of the first switching unit through the second power amplifier unit, and the first output end and the second output end of the first switching unit are connected with the second sound emitting unit and the third sound emitting unit respectively; wherein the audio playing circuit has a first working state and a second working state; in the first working state, the first sound emitting unit emits a first sound wave, the second sound emitting unit emits a second sound wave, and the first sound wave and the second sound wave are opposite in phase; in the second working state, the first sound emitting unit emits a sound wave of a first sound channel, and the third sound emitting unit emits a sound wave of a second sound channel.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of audio power amplifier, and particularly relates to an audio playing circuit, an audio playing circuit control method, an electronic device and a readable storage medium. BACKGROUND

[0002] With the development of electronic device technology, most of the current electronic devices are full-screen devices. For full-screen devices, the speaker for calling is usually arranged at the top of the device, and the speaker for external playing is arranged at the bottom of the device.

[0003] During calling, in order to avoid sound leakage, opposite sound waves are emitted from the front and back of the electronic device, so that the user can hear the sound when facing the front, and people around the user cannot hear the sound due to the cancellation of the two sound waves, thereby achieving the purpose of preventing sound leakage.

[0004] In order to use the electronic device normally, three power amplifiers are usually required to drive the top speaker to emit sound from the front, the top speaker to emit sound from the back, and the external speaker to emit sound, which leads to insufficient audio bus interface of the electronic device, tight layout space of the circuit board, and increased hardware cost. SUMMARY

[0005] The present application provides an audio playing circuit, an audio playing circuit control method, an electronic device and a readable storage medium, so as to reduce the occupation of the audio bus interface of the electronic device, save the layout space of the circuit board, and reduce the hardware cost.

[0006] In a first aspect, the present application discloses an audio playing circuit, comprising:

[0007] comprising a first power amplifier unit, a second power amplifier unit, a first processing unit, a first switching unit, a first sound emitting unit, a second sound emitting unit and a third sound emitting unit;

[0008] The first processing unit is connected with the first sound emitting unit through the first power amplifier unit;

[0009] The first processing unit is connected with the input end of the first switching unit through the second power amplifier unit, and the first output end and the second output end of the first switching unit are connected with the second sound emitting unit and the third sound emitting unit respectively;

[0010] The audio playing circuit has a first working state and a second working state.

[0011] When the audio playing circuit is in the first working state, the first sound emitting unit emits a first sound wave, the second sound emitting unit emits a second sound wave, and the first sound wave and the second sound wave are opposite in phase.

[0012] In a case where the audio playing circuit is in the second working state, the first sound emitting unit emits sound waves of a first sound channel, and the third sound emitting unit emits sound waves of a second sound channel.

[0013] In a case where the audio playing circuit is in the third working state, the first sound emitting unit emits sound waves of a first sound channel, and the second sound emitting unit emits sound waves of a second sound channel.

[0014] The second processing unit is connected with the first diaphragm of the double-diaphragm loudspeaker through the third power amplifier unit.

[0015] The second processing unit is connected with the input end of the second switching unit through the fourth power amplifier unit, the first output end and the second output end of the second switching unit are connected with the second diaphragm of the double-diaphragm loudspeaker and the fourth sound emitting unit respectively.

[0016] The audio playing circuit has a third working state and a fourth working state.

[0017] In a case where the audio playing circuit is in the third working state, the first diaphragm of the double-diaphragm loudspeaker emits first sound waves, and the second diaphragm of the double-diaphragm loudspeaker emits second sound waves, the first sound waves and the second sound waves are opposite in phase.

[0018] In a case where the audio playing circuit is in the fourth working state, the first diaphragm of the double-diaphragm loudspeaker emits sound waves of a first sound channel, and the fourth sound emitting unit emits sound waves of a second sound channel.

[0019] In a case where the audio playing circuit is in the third working state, the first sound emitting unit emits sound waves of a first sound channel, and the second sound emitting unit emits sound waves of a second sound channel.

[0020] Obtaining an audio playing mode of the electronic device;

[0021] According to the audio playing mode, the first switching unit is controlled to switch the connection path of the second power amplifier unit to switch the working state of the audio playing circuit.

[0022] In a case where the connection path of the second power amplifier unit is connected with the second sound emitting unit, the first sound emitting unit emits first sound waves, and the second sound emitting unit emits second sound waves, so that the audio playing circuit is in a first working state, and the first sound waves and the second sound waves are opposite in phase.

[0023] In a case that the connection passage of the fourth power amplifier unit is connected with the third sound generating unit, the first diaphragm of the double-diaphragm loudspeaker is controlled to emit sound waves of a first sound channel, and the fourth sound generating unit is controlled to emit sound waves of a second sound channel, so that the audio playing circuit is in a fourth working state.

[0024] In a fourth aspect, the present application discloses an audio playing circuit control method, which is used for the audio playing circuit in the second aspect, and the method comprises:

[0025] Obtaining an audio playing mode of the electronic device;

[0026] According to the audio playing mode, the second switching unit is controlled to switch the connection passage of the fourth power amplifier unit, so as to switch the working state of the audio playing circuit;

[0027] In a case that the connection passage of the fourth power amplifier unit is connected with the first diaphragm of the double-diaphragm loudspeaker, the first diaphragm of the double-diaphragm loudspeaker is controlled to emit the first sound waves, and the second diaphragm of the double-diaphragm loudspeaker is controlled to emit the second sound waves, so that the audio playing circuit is in a third working state, and the first sound waves and the second sound waves are opposite in phase.

[0028] In a case that the connection passage of the fourth power amplifier unit is connected with the third sound generating unit, the first diaphragm of the double-diaphragm loudspeaker is controlled to emit sound waves of a first sound channel, and the fourth sound generating unit is controlled to emit sound waves of a second sound channel, so that the audio playing circuit is in a fourth working state.

[0029] In a fifth aspect, the embodiments of the present application further provide an electronic device, which comprises a processor and a memory, the memory stores programs or instructions which can be run on the processor, and the programs or instructions are executed by the processor to realize the steps of the method in the third aspect or the fourth aspect.

[0030] In a sixth aspect, the embodiments of the present application further provide a readable storage medium, which stores programs or instructions, and the programs or instructions are executed by a processor to realize the steps of the method in the third aspect or the fourth aspect.

[0031] In a seventh aspect, the embodiments of the present application provide a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used to run programs or instructions to realize the method in the third aspect or the fourth aspect.

[0032] In an eighth aspect, the embodiments of the present application further provide a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to realize the method in the third aspect or the fourth aspect.

[0033] In the embodiment of the present application, the first power amplifier unit and the second power amplifier unit are arranged, the first power amplifier unit controls the first sound unit to emit the first sound wave, the second power amplifier unit controls the connection path of the second power amplifier unit and the second sound unit or the connection path of the second power amplifier unit and the third sound unit to be communicated through the first switching unit, the electronic device includes the earpiece mode and the external playing mode in the normal use, in the earpiece mode, people around the electronic device except the user himself / herself cannot hear the sound of the electronic device clearly, therefore, in the earpiece mode, the second power amplifier unit drives the second sound unit to emit the second sound wave, at this time, the second sound wave is opposite to the first sound wave emitted by the first power amplifier unit in phase, the purpose of protecting the user's privacy is achieved, in the external playing mode, the problem of sound leakage of the electronic device does not need to be considered, at this time, the second sound unit does not need to emit sound, therefore, the second power amplifier unit can drive the third sound unit to emit sound, the stereo sound effect is achieved, through different application scenarios, the second power amplifier unit is effectively utilized, one power amplifier is used to drive two sound units to emit sound, the number of power amplifiers is saved, the hardware cost is reduced, the switching unit is arranged to switch the connection path, the audio bus interface occupation of the electronic device is reduced and the circuit board layout space is saved. BRIEF DESCRIPTION OF DRAWINGS

[0034] Figure 1 is a first audio playing circuit schematic diagram provided by the embodiment of the present application;

[0035] Figure 2 is a second audio playing circuit schematic diagram provided by the embodiment of the present application;

[0036] Figure 3 is a first audio playing circuit control method provided by the embodiment of the present application;

[0037] Figure 4 is a first audio playing circuit control flow chart provided by the embodiment of the present application;

[0038] Figure 5 is a second audio playing circuit control method provided by the embodiment of the present application;

[0039] Figure 6 is a second audio playing circuit control flow chart provided by the embodiment of the present application;

[0040] Figure 7 is a first audio playing circuit control device block diagram provided by the embodiment of the present application;

[0041] Figure 8 is a second audio playing circuit control device block diagram provided by the embodiment of the present application;

[0042] Figure 9 is an electronic device schematic diagram provided by the embodiment of the present application;

[0043] Figure 10 Figure 1 is a schematic diagram of an electronic device hardware structure according to an embodiment of the present application.

[0044] Reference signs:

[0045] 11-first sound emitting unit; 12-second sound emitting unit; 13-third sound emitting unit; 14-first switching unit; 141-first path; 142-second path; 143-first conversion switch; 15-first power amplifier unit; 16-second power amplifier unit; 17-first processing unit; 21-double diaphragm loudspeaker; 211-first diaphragm; 212-second diaphragm; 22-second processing unit; 23-third power amplifier unit; 24-fourth power amplifier unit; 25-second switching unit; 251-third path; 252-fourth path; 253-second conversion switch; 26-fourth sound emitting unit. DETAILED DESCRIPTION

[0046] Exemplary embodiments of the present application will be described in detail with reference to the drawings. Although exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be embodied in various forms without being limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present application will be thorough and complete, and will fully convey the scope of the present application to those skilled in the art.

[0047] In a first aspect, with reference to Figure 1 Figure 1, an audio playing circuit according to an embodiment of the present application is disclosed, which comprises a first power amplifier unit 15, a second power amplifier unit 16, a first processing unit 17, a first switching unit 14, a first sound emitting unit 11, a second sound emitting unit 12, and a third sound emitting unit 13. The first processing unit 17 is connected to the first sound emitting unit 11 through the first power amplifier unit 15. The first processing unit 17 is connected to the input end of the first switching unit 14 through the second power amplifier unit 16. The first output end and the second output end of the first switching unit 14 are connected to the second sound emitting unit 12 and the third sound emitting unit 13, respectively. The audio playing circuit has a first working state and a second working state. In the case that the audio playing circuit is in the first working state, the first sound emitting unit 11 emits a first sound wave, and the second sound emitting unit 12 emits a second sound wave. The first sound wave and the second sound wave are in opposite phases. In the case that the audio playing circuit is in the second working state, the first sound emitting unit 11 emits a sound wave of a first sound channel, and the third sound emitting unit 13 emits a sound wave of a second sound channel.

[0048] Specifically, in the embodiment of the present application, the audio playing circuit is a circuit for controlling the power amplifier to drive the loudspeaker to play. The power amplifier is used to amplify the weak electric signal from the signal source (in a professional sound system, the signal source is a mixing desk) to drive the loudspeaker to emit sound. The power amplifier includes a tube power amplifier, a transistor power amplifier, an integrated circuit power amplifier, etc. The loudspeaker is an electroacoustic device that converts electric energy into sound energy and is widely used in mobile phones, computers, navigation devices, telephones, etc. For example, for a paper cone loudspeaker, when the audio current output by the power amplifier passes through the voice coil of the loudspeaker, the voice coil generates high-frequency motion due to the interaction between the magnetic field and the voice coil. The voice coil is fixed on the paper cone, and the voice coil vibrates with the signal, thereby realizing the conversion of electric energy into sound energy through the vibration system.

[0049] The first working state can be a state when the electronic device is in an earpiece mode. In the first working state, the electronic device needs to prevent the problem of sound leakage, that is, the sound emitted by the earpiece can only be heard by the user himself / herself, so as to protect the user's privacy. At this time, the first sound unit 11 can emit a first sound wave under the driving of the first power amplifier unit 15. The first sound wave can be sound emitted from the front of the electronic device. The first power amplifier unit 15 includes a power amplifier element and is connected with the first sound unit 11 and the first processing unit 17. The first processing unit 17 is a central processing unit. The first processing unit 17 can drive the first power amplifier unit 15 to start working, so that the first sound unit emits the first sound wave, that is, the sound emitted from the front of the electronic device is independently driven by the first power amplifier unit 15. The second sound unit 12 can emit a second sound wave under the driving of the second power amplifier unit 16. The second sound wave can be sound emitted from the back or top of the electronic device. The phases of the first sound wave and the second sound wave are opposite, so the second sound wave can partially cancel the first sound wave, thereby achieving the effect of preventing sound leakage.

[0050] The second working state can be a state when the electronic device is in an external playing mode. In the second working state, the electronic device does not need to consider the problem of sound leakage, and the second sound unit does not need to emit sound. At this time, the second power amplifier unit 16 can be in communication with the connection path of the third sound unit 13. The first sound unit 11 emits a sound wave of a first sound channel, and the third sound unit 13 emits a sound wave of a second sound channel, thereby realizing the effect of stereo sound in the external playing mode.

[0051] Further, the second power amplifier unit 16 is connected with the first processing unit 17 and the first switching unit 14, the first switching unit 14 is used for switching the connection path of the second power amplifier unit, under the switching of the first switching unit 14, the second power amplifier unit 16 can be switched between connecting the second sound unit 12 or connecting the third sound unit 13, that is, the second power amplifier unit 16 can alternatively control the second sound unit 12 to sound from the back or control the third sound unit 13 to sound. In the earphone mode, the second power amplifier unit controls the second sound unit 12 to sound, the phases of the first sound wave and the second sound wave are opposite, so that the second sound wave can partially offset the first sound wave emitted by the first sound unit 11, at this time, people around the user cannot hear the sound of the electronic device, and because the user's ear is close to the sound outlet on the front of the electronic device at this time, the distance is very close, the first sound wave and the second sound wave are partially offset before the user hears the sound emitted from the front of the electronic device, so that only the user himself can hear the sound of the electronic device from the front, achieving the effect of preventing sound leakage and protecting privacy. In the external mode, the second power amplifier unit controls the third sound unit to sound, achieving the effect of stereo sound. Therefore, by switching the connection path through the first switching unit 14, the function of the second power amplifier unit 16 is maximized, saving the hardware cost of the electronic device. Since the first switching unit switches the connection path, the audio bus interface occupation of the electronic device is reduced and the circuit board layout space is saved.

[0052] Optionally, as shown in Figure 1 The first switching unit 14 includes a first conversion switch 143, a first path 141 and a second path 142, the first path 141 is connected with the second sound unit 12, and the second path 142 is connected with the third sound unit 13; the first output end is connected with the first path 141 through the first conversion switch 143, so as to connect the connection path between the second power amplifier unit 16 and the second sound unit 12; and the second output end is connected with the second path 142 through the first conversion switch 143, so as to connect the connection path between the second power amplifier unit 16 and the third sound unit 13.

[0053] Specifically, the first switching unit 14 can include a first conversion switch 143, which can be connected with the first path 141 or the second path 142 under the control of the first processing unit 17, when the first conversion switch 143 is connected with the first path 141, the second power amplifier unit 16 drives the second sound unit 11 to emit the second sound wave, and when the first conversion switch 143 is connected with the second path 142, the second power amplifier unit 16 drives the third sound unit 13 to emit sound.

[0054] Optionally, the sound outlet of the first sound unit 11 is arranged on the front of the electronic device, and the sound outlet of the second sound unit 12 is arranged on the back or top of the electronic device.

[0055] Specifically, since the first sound unit 11 is a loudspeaker that emits sound from the front of the electronic device, the sound outlet of the first sound unit 11 can be arranged on the front of the electronic device, and the second sound unit 12 is a loudspeaker that emits sound from the back or top of the electronic device, so the sound outlet of the second sound unit 12 can be arranged on the back or top of the electronic device, so that the first sound wave and the second sound wave are opposite in phase, the second sound wave partially cancels the first sound wave, and the effect of preventing sound leakage in the earpiece mode is achieved.

[0056] In a second aspect, referring to Figure 2 The audio playing circuit includes a third power amplifier unit 23, a fourth power amplifier unit 24, a second processing unit 22, a second switching unit 25, a dual-diaphragm loudspeaker 21, and a fourth sound unit 26. The dual-diaphragm loudspeaker 21 includes a first diaphragm 211 and a second diaphragm 212. The second processing unit 22 is connected to the first diaphragm of the dual-diaphragm loudspeaker 21 through the third power amplifier unit 23. The second processing unit 22 is connected to the input end of the second switching unit 25 through the fourth power amplifier unit 24. The first output end and the second output end of the second switching unit 25 are respectively connected to the second diaphragm 212 of the dual-diaphragm loudspeaker 21 and the fourth sound unit 26. The audio playing circuit has a third working state and a fourth working state. In the third working state, the first diaphragm 211 of the dual-diaphragm loudspeaker 21 emits a first sound wave, and the second diaphragm 212 of the dual-diaphragm loudspeaker 21 emits a second sound wave, and the first sound wave and the second sound wave are opposite in phase. In the fourth working state, the first diaphragm 211 of the dual-diaphragm loudspeaker 21 emits a sound wave of a first sound channel, and the fourth sound unit emits a sound wave of a second sound channel.

[0057] Specifically, in the embodiment of the present application, the dual-diaphragm loudspeaker 21 is a loudspeaker that can emit two different sound waves of opposite phases by simultaneously operating the first diaphragm 211 and the second diaphragm 212, or emit a sound wave by operating only the first diaphragm 211 or only the second diaphragm 212.

[0058] Further, the third working state can be a state when the electronic device is in the earpiece mode. In the third working state, the electronic device needs to prevent the problem of sound leakage, that is, the sound emitted by the earpiece can only be heard by the user himself / herself to protect the user's privacy. At this time, the third power amplifier unit 23 is directly connected to the first diaphragm 211 of the double-diaphragm loudspeaker 21 and is used to drive the first diaphragm 211 of the double-diaphragm loudspeaker 21 to emit sound. In the earpiece mode, the first diaphragm 211 of the double-diaphragm loudspeaker 21 emits the first sound wave under the control of the third power amplifier unit 23. The first sound wave can be emitted from the front of the electronic device. The second diaphragm 212 of the double-diaphragm loudspeaker 21 emits the second sound wave under the control of the fourth power amplifier unit. The second sound wave can be emitted from the back or top of the electronic device. In the second switching unit 25, when the second switching switch 253 is connected to the third path 251, the fourth power amplifier unit 24 is connected to the connection path of the second diaphragm 212 of the double-diaphragm loudspeaker 21 to communicate, drive the second diaphragm 212 of the double-diaphragm loudspeaker 21 to emit the second sound wave, so that the second sound wave and the first sound wave partially cancel each other in phase, and the purpose of preventing sound leakage is achieved.

[0059] The fourth working state can be a state when the electronic device is in the external mode. In the fourth working state, the electronic device does not need to consider the problem of sound leakage, and the second diaphragm 212 of the double-diaphragm loudspeaker 21 does not need to emit sound. At this time, the fourth power amplifier unit 16 can be connected to the connection path of the fourth sound emitting unit 26. At this time, the first diaphragm 211 of the double-diaphragm loudspeaker 21 emits the sound wave of the first sound channel, and the fourth sound emitting unit emits the sound wave of the second sound channel, so as to realize the effect of stereo sound in the external mode.

[0060] Further, the fourth power amplifier unit 24 is connected with the second processing unit 22 and the second switching unit 25, the second switching unit 25 is used for switching the connection path of the fourth power amplifier unit, under the switching of the second switching unit 25, the fourth power amplifier unit 24 can be switched between connecting the second diaphragm 212 of the double diaphragm loudspeaker 21 or connecting the fourth sound unit 26, that is, the fourth power amplifier unit 24 can alternatively control the second diaphragm 212 of the double diaphragm loudspeaker 21 to sound from the back or control the fourth sound unit 26 to sound. In the earphone mode, the fourth power amplifier unit controls the second diaphragm 212 of the double diaphragm loudspeaker 21 to emit the second sound wave, the phase of the first sound wave and the second sound wave is opposite, so that the second sound wave can partially offset the first sound wave emitted by the first sound unit 11, at this time, people around the user cannot hear the sound of the electronic device, and because at this time the user's ear is close to the sound outlet on the front of the electronic device, the distance is very close, before the first sound wave and the second sound wave are partially offset, the user can hear the sound emitted from the front of the electronic device, so as to realize that only the user himself can hear the sound of the electronic device from the front, and achieve the effect of preventing sound leakage and protecting privacy. In the external mode, the fourth power amplifier unit 24 controls the fourth sound unit 26 to sound, at this time, the first diaphragm 211 of the double diaphragm loudspeaker 21 emits the sound wave of the first sound channel, and the fourth sound unit emits the sound wave of the second sound channel, so as to achieve the effect of stereo sound. Therefore, by switching the connection path through the second switching unit 25, the function of the fourth power amplifier unit 24 is maximized, the hardware cost of the electronic device is saved, and because the second switching unit switches the connection path, the occupation of the audio bus interface of the electronic device is reduced and the layout space of the circuit board is saved.

[0061] Optionally, with reference to Figure 2 , the second switching unit 25 comprises: a second conversion switch 253, a third path 251 and a fourth path 252, the third path 251 is connected with the second diaphragm 212 of the double diaphragm loudspeaker 21, and the fourth path is connected with the fourth sound unit 26; the first output end is connected with the third path through the second conversion switch 253, so as to connect the connection path between the fourth power amplifier unit 26 and the second diaphragm 212 of the double diaphragm loudspeaker 21; and the second output end is connected with the fourth path through the second conversion switch 253, so as to connect the connection path between the fourth power amplifier unit 24 and the fourth sound unit 26.

[0062] Specifically, the second switching unit 25 can include a second conversion switch 253, which can be in communication with the third path 251 or the fourth path 252 under the control of the second processing unit 22, when the second conversion switch 253 is in communication with the first path 251, the third power amplifier unit 23 drives the second diaphragm 212 of the double-diaphragm loudspeaker 21 to emit the second sound wave, when the second conversion switch 253 is in communication with the fourth path, the fourth power amplifier unit 24 drives the fourth sound emitting unit 26 to emit sound, so as to realize that the fourth power amplifier unit drives different sound emitting units to emit sound in different working states, save the number of power amplifiers, and reduce the hardware cost.

[0063] Optionally, the sound outlet of the first diaphragm 211 of the double-diaphragm loudspeaker 21 is arranged on the front surface of the electronic device, and the sound outlet of the second diaphragm 212 of the double-diaphragm loudspeaker 21 is arranged on the back surface or the top of the electronic device.

[0064] Specifically, since the first diaphragm 211 of the double-diaphragm loudspeaker 21 emits sound on the front surface of the electronic device, the sound outlet of the first diaphragm 211 of the double-diaphragm loudspeaker 21 can be arranged on the front surface of the electronic device, and since the second diaphragm 212 of the double-diaphragm loudspeaker 21 emits sound on the back surface or the top of the electronic device, the sound outlet of the second diaphragm 212 of the double-diaphragm loudspeaker 21 can be arranged on the back surface or the top of the electronic device, so that the first sound wave and the second sound wave are opposite in phase, the second sound wave partially cancels the first sound wave, and the effect of preventing sound leakage in the earphone mode is achieved.

[0065] In the embodiment of the present application, the first power amplifier unit and the second power amplifier unit are arranged, the first power amplifier unit controls the first sound emitting unit to emit the first sound wave, the second power amplifier unit controls the connection path of the second power amplifier unit and the second sound emitting unit or the connection path of the second power amplifier unit and the third sound emitting unit through the first switching unit, the electronic device includes the earphone mode and the external playing mode in normal use, in the earphone mode, people around the electronic device except the user himself / herself cannot clearly hear the sound of the electronic device, therefore, in the earphone mode, the second power amplifier unit drives the second sound emitting unit to emit the second sound wave, at this time, the second sound wave is opposite in phase to the first sound wave emitted by the first power amplifier unit, so as to achieve the purpose of protecting the user's privacy, in the external playing mode, there is no need to consider the problem of sound leakage of the electronic device, at this time, the second sound emitting unit does not need to emit sound, therefore, the second power amplifier unit can drive the third sound emitting unit to emit sound, so as to realize the effect of stereo sound, through different application scenarios, the second power amplifier unit is effectively utilized, one power amplifier is used to drive two sound emitting units to emit sound, the number of power amplifiers is saved, the hardware cost is reduced, the switching connection path is arranged through the switching unit, the occupation of the audio bus interface of the electronic device is reduced, and the layout space of the circuit board is saved.

[0066] In a third aspect, an embodiment of the present application provides an audio playing circuit control method, Figure 3 A flow chart of the audio playing circuit control method is provided for the audio playing circuit of the first aspect, and the method can include the following steps:

[0067] In step 101, an audio playing mode of the electronic device is obtained.

[0068] In the embodiment of the present application, the audio playing mode can include an external playing mode, in which the sound is loud and everyone around the electronic device can hear the sound emitted by the loudspeaker of the electronic device, and a receiver mode, in which only the user can hear the sound of the electronic device, and everyone around the electronic device cannot clearly hear the sound emitted by the electronic device. Different audio playing modes correspond to different sound emitting units, that is, different sound emitting units are responsible for sound emitting work in different audio playing modes. The software or program for obtaining the audio playing mode of the electronic device can be pre-configured to obtain the audio playing mode of the electronic device.

[0069] In step 102, the first switching unit is controlled to switch the connection path of the second power amplifier unit according to the audio playing mode, so as to switch the working state of the audio playing circuit.

[0070] In the embodiment of the present application, after obtaining the current audio playing mode, the first switching unit can be controlled to switch the connection path of the second power amplifier unit according to the audio playing mode, so that the sound emitting unit corresponding to the audio playing mode works.

[0071] In the embodiment of the present application, the audio playing mode includes a receiver mode and an external playing mode, and step 102 specifically includes the following steps:

[0072] In sub-step 1021, when the audio playing mode is the receiver mode, the first switching unit is controlled to switch the connection path, so that the second power amplifier unit is switched to be in communication with the connection path of the second sound emitting unit.

[0073] In the embodiment of the present application, the receiver mode is a mode in which only the user can hear, and the user needs to put his ear close to the electronic device to hear the sound, for example, the user is talking or listening to voice messages by using a chat software. In the receiver mode, the privacy and safety of the user need to be ensured, and the people around the user should not hear the sound of the electronic device. Therefore, in the receiver mode, the connection path of the second power amplifier unit and the second sound emitting unit is controlled to be in communication, so that the second sound wave emitted by the second sound emitting unit can partially cancel the first sound wave emitted by the first sound emitting unit. At this time, the user can hear the sound in the direction of the first sound wave, and the people around the user hear the sound after the two sound waves are cancelled, so as to prevent the sound leakage and protect the privacy of the user.

[0074] Sub-step 1022, when the audio playing mode is the external mode, the first switching unit is controlled to switch the connection path, so that the second power amplifier unit is switched to be in communication with the connection path of the third sound generating unit.

[0075] In the embodiment of the present application, the external mode is a mode in which people around the electronic device can hear the sound of the electronic device, in which case the user does not need to put his ear close to the electronic device, and can hear the sound of the electronic device at a distance, such as one meter or two meters. When the obtained audio playing mode is the external mode, the problem of sound leakage does not need to be considered, in which case the second sound generating unit does not need to generate sound, and therefore the first switching unit can be controlled to switch the connection path, so that the second power amplifier unit is in communication with the connection path of the third sound generating unit, and external sound is played, achieving a stereo effect.

[0076] Step 103, when the connection path of the second power amplifier unit is connected to the second sound generating unit, the first sound generating unit is controlled to generate a first sound wave, and the second sound generating unit is controlled to generate a second sound wave, so that the audio playing circuit is in a first working state, and the first sound wave and the second sound wave are in opposite phases.

[0077] In the embodiment of the present application, when the connection path of the second power amplifier unit is connected to the first sound generating unit, i.e. in the earphone mode, the audio playing circuit is in the first working state, in which case the first sound generating unit is controlled to generate a first sound wave, so that the user can clearly hear the sound generated by the electronic device, and the second sound generating unit is controlled to generate a second sound wave, so that the two sound waves in opposite phases partially cancel each other out, and people around the electronic device hear the sound after cancellation, achieving the purpose of preventing sound leakage.

[0078] Step 104, when the connection path of the second power amplifier unit is connected to the third sound generating unit, the first sound generating unit is controlled to generate a sound wave of a first sound channel, and the third sound generating unit is controlled to generate a sound wave of a second sound channel, so that the audio playing circuit is in a second working state.

[0079] In the embodiment of the present application, when the connection path of the second power amplifier unit is connected to the third sound generating unit, i.e. in the external mode, the audio playing circuit is in the second working state, in which case the second power amplifier unit drives the loudspeaker of the third sound generating unit to play external sound, and the sound wave of the first sound channel generated by the first sound generating unit and the sound wave of the second sound channel generated by the third sound generating unit form a stereo effect.

[0080] Reference Figure 4In a default state, the first switch is connected with the second channel, that is, the default state is an external mode, at this time, the first power amplifier unit is controlled to drive the first sound unit to sound, and the second power amplifier unit is controlled to drive the third sound unit to sound, if it is detected that the audio playing mode enters the receiver mode, the first switch is switched to be connected with the first channel, the first power amplifier unit is controlled to drive the first sound unit to sound, and the second power amplifier unit is controlled to drive the second sound unit to sound, if it is detected that the audio playing mode does not change, the channel connection state does not change, if it is detected that the receiver mode is exited, the first switch is switched to be connected with the second channel, and the default external mode is returned, the default state can be the external mode or the receiver mode, which is not limited in the embodiment of the application.

[0081] In a fourth aspect, the embodiment of the application provides an audio playing circuit control method, Figure 5 A step flowchart of the audio playing circuit control method is provided for the audio playing circuit in the second aspect, and the method can include the following steps.

[0082] In step 201, an audio playing mode of an electronic device is acquired.

[0083] The step can refer to step 201, and details are not described herein.

[0084] In step 202, according to the audio playing mode, a second switching unit is controlled to switch a connection channel of a fourth power amplifier unit, so as to switch a working state of the audio playing circuit.

[0085] Optionally, the audio playing mode includes a receiver mode and an external mode, and step 202 specifically includes the following steps.

[0086] In substep 2021, when the audio playing mode is the receiver mode, the second switching unit is controlled to switch the connection channel, so that the fourth power amplifier unit is switched to be connected with a connection channel of a second diaphragm of the double-diaphragm loudspeaker.

[0087] In the embodiment of the application, the receiver mode is a mode in which only the user himself / herself can hear, and the user needs to put the ear close to the electronic device to hear the sound, for example, the user is talking or listening to a voice message by using a chat software, in the receiver mode, the privacy and safety of the user need to be ensured, and people around the user also need to hear the sound of the electronic device, therefore, in the receiver mode, the fourth power amplifier unit is controlled to be connected with the connection channel of the second diaphragm of the double-diaphragm loudspeaker, so that the second sound wave emitted by the second diaphragm of the double-diaphragm loudspeaker and the first sound wave emitted by the first diaphragm of the double-diaphragm loudspeaker can be partially offset, at this time, the user can hear the sound in the direction of the first sound wave, and people around the user hear the sound after the two sound waves are offset, so that the purpose of preventing the sound leakage and protecting the privacy of the user is achieved.

[0088] Sub-step 2022, when the audio playing mode is the external mode, the second switching unit is controlled to switch the connection path, so that the fourth power amplifier unit is switched to be in communication with the connection path of the fourth sound generating unit.

[0089] In the embodiment of the present application, the external mode is a mode in which people around the electronic device can hear the sound of the electronic device, at this time, the user does not need to put his ear close to the electronic device, and can hear the sound of the electronic device at a certain distance, such as one meter or two meters. When the obtained audio playing mode is the external mode, the problem of sound leakage does not need to be considered, at this time, the second diaphragm of the double-diaphragm loudspeaker does not need to generate sound, therefore, the second switching unit can be controlled to switch the connection path, so that the fourth power amplifier unit is in communication with the connection path of the fourth sound generating unit, and the sound is played externally, achieving the effect of stereo sound.

[0090] Step 203, when the connection path of the fourth power amplifier unit is connected to the first diaphragm of the double-diaphragm loudspeaker, the first diaphragm of the double-diaphragm loudspeaker is controlled to emit a first sound wave, and the second diaphragm of the double-diaphragm loudspeaker is controlled to emit a second sound wave, so that the audio playing circuit is in a third working state, and the first sound wave and the second sound wave are opposite in phase.

[0091] In the embodiment of the present application, when the connection path of the third power amplifier unit is connected to the second diaphragm of the double-diaphragm loudspeaker, the earphone mode, the audio playing circuit is in the third working state, the first diaphragm of the double-diaphragm loudspeaker is controlled to emit a first sound wave, so that the user can clearly hear the sound emitted by the electronic device, and the second diaphragm of the double-diaphragm loudspeaker is controlled to emit a second sound wave, so that the two sound waves partially cancel each other out, avoiding people around the user from hearing the sound of the electronic device.

[0092] Step 204, when the connection path of the fourth power amplifier unit is connected to the fourth sound generating unit, the first diaphragm of the double-diaphragm loudspeaker is controlled to emit a sound wave of a first sound channel, and the fourth sound generating unit is controlled to emit a sound wave of a second sound channel, so that the audio playing circuit is in a fourth working state.

[0093] In the embodiment of the present application, when the connection path of the fourth power amplifier unit is connected to the fourth sound generating unit, that is, in the external mode, the audio playing circuit is in the fourth working state, the fourth power amplifier unit is controlled to drive the loudspeaker of the fourth sound generating unit to play sound externally, and the first diaphragm of the double-diaphragm loudspeaker emits a sound wave of a first sound channel, and the fourth sound generating unit emits a sound wave of a second sound channel, forming the effect of stereo sound.

[0094] Reference Figure 6In a default state, the second switch is connected with the fourth channel, that is, the default state is an external mode, at this time, the third power amplifier unit drives the first diaphragm of the double-diaphragm loudspeaker to sound, and the fourth power amplifier unit drives the fourth sounding unit to sound, if it is detected that the audio playing mode enters the receiver mode, the second switch is switched to be connected with the third channel, the third power amplifier unit drives the first diaphragm of the double-diaphragm loudspeaker to sound, and the fourth power amplifier unit drives the second diaphragm of the double-diaphragm loudspeaker to sound, if it is detected that the audio playing mode does not change, the channel connection state does not change, if it is detected that the receiver mode is exited, the second switch is switched to be connected with the fourth channel, and the default external mode is returned, the default state can be the external mode or the receiver mode, which is not limited in the embodiment of the application.

[0095] In conclusion, in the embodiment of the application, the first power amplifier unit and the second power amplifier unit are arranged, the first power amplifier unit controls the first sounding unit to emit the first sound wave, the second power amplifier unit is switched to be connected with the connection channel through the first switching unit, and the connection channel of the second power amplifier unit and the second sounding unit or the connection channel of the second power amplifier unit and the third sounding unit is connected, the electronic device is used in a normal mode, including the receiver mode and the external mode, in the receiver mode, people around the electronic device except the user himself / herself cannot clearly hear the sound of the electronic device, therefore, in the receiver mode, the second power amplifier unit drives the second sounding unit to emit the second sound wave, at this time, the second sound wave is opposite to the first sound wave emitted by the first power amplifier unit in phase, and the purpose of protecting the user's privacy is achieved, in the external mode, the problem of sound leakage of the electronic device does not need to be considered, at this time, the second sounding unit does not need to sound, therefore, the second power amplifier unit can drive the third sounding unit to emit sound, and the stereo sound effect is achieved, through different application scenarios, the second power amplifier unit is effectively utilized, one power amplifier is used to drive two sounding units to sound, the number of power amplifiers is saved, the hardware cost is reduced, the switching unit is arranged to switch the connection channel, the audio bus interface occupation of the electronic device is reduced, and the circuit board layout space is saved.

[0096] Figure 7 Fig. 1 is a block diagram of a first audio playing circuit control device provided by the embodiment of the application, as shown in the figure, the audio playing circuit control device 30 comprises: Figure 7

[0097] A first playing mode acquisition module 301 is used to acquire the audio playing mode of the electronic device.

[0098] A first connection channel switching module 302 is used to control the switching unit to switch the connection channel of the second power amplifier unit according to the audio playing mode, so as to switch the working state of the audio playing circuit.

[0099] ​The first playing module 303 is configured to, when the connection passage of the second power amplifier unit is connected to the second sound generating unit, control the first sound generating unit to emit a first sound wave and the second sound generating unit to emit a second sound wave, so that the audio playing circuit is in a first working state, and the first sound wave and the second sound wave are opposite in phase.

[0100] The second playing module 304 is configured to, when the connection passage of the second power amplifier unit is connected to the third sound generating unit, control the first sound generating unit to emit a sound wave of a first sound channel and the third sound generating unit to emit a sound wave of a second sound channel, so that the audio playing circuit is in a second working state.

[0101] Optionally, the audio playing mode includes a receiver mode and a loudspeaker mode, and the connection passage switching module 302 specifically includes:

[0102] The first switching submodule is configured to, when the audio playing mode is the receiver mode, control the first switching unit to switch the connection passage, so that the second power amplifier unit is switched to be in communication with the connection passage of the second sound generating unit.

[0103] The second switching submodule is configured to, when the audio playing mode is the loudspeaker mode, control the first switching unit to switch the connection passage, so that the second power amplifier unit is switched to be in communication with the connection passage of the third sound generating unit.

[0104] Figure 8 is a block diagram of a second audio playing circuit control device provided by an embodiment of the present application, as shown in the figure, the audio playing circuit control device 40 includes: Figure 8

[0105] The second playing mode acquisition module 401 is configured to acquire an audio playing mode of an electronic device.

[0106] The second connection passage switching module 402 is configured to, according to the audio playing mode, control a second switching unit to switch a connection passage of a fourth power amplifier unit, so as to switch a working state of an audio playing circuit.

[0107] The third playing module 403 is configured to, when the connection passage of the fourth power amplifier unit is connected to a first diaphragm of a double-diaphragm loudspeaker, control the first diaphragm of the double-diaphragm loudspeaker to emit a first sound wave and the second diaphragm of the double-diaphragm loudspeaker to emit a second sound wave, so that the audio playing circuit is in a third working state, and the first sound wave and the second sound wave are opposite in phase.

[0108] ​The fourth playing module 404 is configured to control the first diaphragm of the double-diaphragm loudspeaker to emit sound waves of the first sound channel and the fourth sound emitting unit to emit sound waves of the second sound channel when the connection passage of the fourth power amplifier unit is connected with the fourth sound emitting unit, so that the audio playing circuit is in the fourth working state.

[0109] Optionally, the audio playing mode includes a receiver mode and a speaker mode, and the second connection passage switching module 402 includes:

[0110] The third switching submodule is configured to control the second switching unit to switch the connection passage when the audio playing mode is the receiver mode, so that the fourth power amplifier unit is switched to be in communication with the connection passage of the second diaphragm of the double-diaphragm loudspeaker.

[0111] The fourth switching submodule is configured to control the second switching unit to switch the connection passage when the audio playing mode is the speaker mode, so that the fourth power amplifier unit is switched to be in communication with the connection passage of the fourth sound emitting unit.

[0112] In summary, in the embodiment of the present application, the first power amplifier unit and the second power amplifier unit are provided, the first power amplifier unit controls the first sound emitting unit to emit the first sound waves alone, the second power amplifier unit controls the connection passage of the second power amplifier unit and the second sound emitting unit or the connection passage of the second power amplifier unit and the third sound emitting unit through the first switching unit, the electronic device includes the receiver mode and the speaker mode when used normally, the receiver mode ensures that people around the electronic device cannot hear the sound of the electronic device clearly except the user himself / herself, so the second power amplifier unit drives the second sound emitting unit to emit the second sound waves when the receiver mode is used, at this time, the second sound waves are opposite in phase to the first sound waves emitted by the first power amplifier unit, so that the purpose of protecting the user's privacy is achieved, and the speaker mode does not need to consider the problem of sound leakage of the electronic device, so the second sound emitting unit does not need to emit sound, and therefore the second power amplifier unit can drive the third sound emitting unit to emit sound, so that the stereo sound effect is achieved, the second power amplifier unit is effectively used through different application scenarios, one power amplifier is used to drive two sound emitting units to emit sound, the number of power amplifiers is saved, the hardware cost is reduced, the audio bus interface of the electronic device is reduced, and the layout space of the circuit board is saved.

[0113] The audio playing circuit control apparatus in the embodiments of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or the like, and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like, and the embodiments of the present application are not limited in this regard.

[0114] The audio playing circuit control apparatus in the embodiments of the present application can be a device with an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating system, and the embodiments of the present application are not limited in this regard.

[0115] The audio playing circuit control apparatus provided in the embodiments of the present application can implement the method embodiments, and each process of the method embodiments is not repeated here. Figure 7 The method embodiments implement each process, and each process is not repeated here.

[0116] Optionally, as shown in Figure 9 The embodiments of the present application also provide an electronic device 400, which includes a processor 401 and a memory 402, and the memory 402 stores programs or instructions which can be run on the processor 401. When the programs or instructions are executed by the processor 401, each step of the above-mentioned audio playing circuit control method embodiments is implemented, and the same technical effects are achieved. Each step is not repeated here.

[0117] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device.

[0118] Figure 10 The hardware structure of an electronic device according to an embodiment of the present application is shown in FIG. 4.

[0119] The electronic device 400 includes, but is not limited to, a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010, etc.

[0120] Those skilled in the art can understand that the electronic device 400 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1010 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure is not a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which are not described here.

[0121] The processor 1010 is configured to obtain an audio playback mode of the electronic device.

[0122] According to the audio playback mode, the first switching unit is controlled to switch the connection path of the second power amplifier unit, so as to switch the working state of the audio playback circuit.

[0123] In a case where the connection path of the second power amplifier unit is connected to the second sound generating unit, the first sound generating unit is controlled to emit a first sound wave, and the second sound generating unit is controlled to emit a second sound wave, so that the audio playback circuit is in a first working state, and the first sound wave and the second sound wave are opposite in phase.

[0124] In a case where the connection path of the second power amplifier unit is connected to the third sound generating unit, the first sound generating unit is controlled to emit a first sound wave of a first sound channel, and the third sound generating unit is controlled to emit a second sound wave of a second sound channel, so that the audio playback circuit is in a second working state.

[0125] Optionally, the audio playback mode includes an earpiece mode and a loudspeaker mode, and the control of the switching unit to switch the connection path of the second power amplifier unit according to the audio playback mode includes:

[0126] In a case where the audio playback mode is the earpiece mode, the first switching unit is controlled to switch the connection path, so that the second power amplifier unit is switched to be in communication with the connection path of the second sound generating unit.

[0127] In a case where the audio playback mode is the loudspeaker mode, the first switching unit is controlled to switch the connection path, so that the second power amplifier unit is switched to be in communication with the connection path of the third sound generating unit.

[0128] The processor 1010 is further configured to obtain an audio playback mode of the electronic device.

[0129] According to the audio playback mode, the second switching unit is controlled to switch the connection path of the fourth power amplifier unit, so as to switch the working state of the audio playback circuit;

[0130] In the case that the connection path of the fourth power amplifier unit is connected to the first diaphragm of the double-diaphragm loudspeaker, the first diaphragm of the double-diaphragm loudspeaker is controlled to emit a first sound wave, and the second diaphragm of the double-diaphragm loudspeaker is controlled to emit a second sound wave, so that the audio playback circuit is in a third working state, and the first sound wave and the second sound wave are opposite in phase;

[0131] In the case that the connection path of the fourth power amplifier unit is connected to the fourth sound-emitting unit, the first diaphragm of the double-diaphragm loudspeaker is controlled to emit a sound wave of a first sound channel, and the fourth sound-emitting unit is controlled to emit a sound wave of a second sound channel, so that the audio playback circuit is in a fourth working state.

[0132] Optionally, the audio playback mode includes an earphone mode and a speaker mode, and the second switching unit is controlled to switch the connection path of the fourth power amplifier unit according to the audio playback mode, including:

[0133] In the case that the audio playback mode is the earphone mode, the second switching unit is controlled to switch the connection path, so that the fourth power amplifier unit is switched to be in communication with the connection path of the second diaphragm of the double-diaphragm loudspeaker;

[0134] In the case that the audio playback mode is the speaker mode, the second switching unit is controlled to switch the connection path, so that the fourth power amplifier unit is switched to be in communication with the connection path of the fourth sound-emitting unit.

[0135] By executing the above method through the processor 1010, the second power amplifier unit or the fourth power amplifier unit is effectively utilized, the number of power amplifiers is saved, the increase of hardware cost is reduced, the switching unit is set to switch the connection path, and the audio bus interface occupation and the circuit board layout space occupation of the electronic device are reduced.

[0136] The audio output unit 1003 includes a first power amplifier unit, a second power amplifier unit, a first processing unit, a first switching unit, a first sound-emitting unit, a second sound-emitting unit, and a third sound-emitting unit;

[0137] The first processing unit is connected to the first sound-emitting unit through the first power amplifier unit;

[0138] The first processing unit is connected to the input end of the first switching unit through the second power amplifier unit, and the first output end and the second output end of the first switching unit are respectively connected to the second sound-emitting unit and the third sound-emitting unit;

[0139] The audio playing circuit has a first working state and a second working state.

[0140] When the audio playing circuit is in the first working state, the first sound emitting unit emits a first sound wave, the second sound emitting unit emits a second sound wave, and the first sound wave and the second sound wave are in opposite phases.

[0141] When the audio playing circuit is in the second working state, the first sound emitting unit emits a sound wave of a first sound channel, and the third sound emitting unit emits a sound wave of a second sound channel.

[0142] Optionally, the switching unit in the audio output unit 1003 comprises:

[0143] The first switching unit comprises a first conversion switch, a first passage and a second passage, the first passage is connected to the second sound emitting unit, and the second passage is connected to the third sound emitting unit.

[0144] The first output end is connected to the first passage through the first conversion switch, so as to connect the connection passage between the second power amplifier unit and the second sound emitting unit.

[0145] The second output end is connected to the second passage through the first conversion switch, so as to connect the connection passage between the second power amplifier unit and the third sound emitting unit.

[0146] Optionally, the sound outlet of the first sound emitting unit is arranged on the front surface of the electronic device, and the sound outlet of the second sound emitting unit is arranged on the back surface or the top of the electronic device.

[0147] The audio output unit 1003 can further comprise a third power amplifier unit, a fourth power amplifier unit, a second processing unit, a second switching unit, a double diaphragm loudspeaker and a fourth sound emitting unit, the double diaphragm loudspeaker comprises a first diaphragm and a second diaphragm.

[0148] The second processing unit is connected to the first diaphragm of the double diaphragm loudspeaker through the third power amplifier unit.

[0149] The second processing unit is connected to the input end of the second switching unit through the fourth power amplifier unit, and the first output end and the second output end of the second switching unit are respectively connected to the second diaphragm of the double diaphragm loudspeaker and the fourth sound emitting unit.

[0150] The audio playing circuit has a third working state and a fourth working state.

[0151] In the case that the audio playing circuit is in the third working state, the first diaphragm of the double-diaphragm loudspeaker emits a first sound wave, the second diaphragm of the double-diaphragm loudspeaker emits a second sound wave, and the first sound wave and the second sound wave are in opposite phases.

[0152] In the case that the audio playing circuit is in the fourth working state, the first diaphragm of the double-diaphragm loudspeaker emits a sound wave of a first sound channel, and the fourth sound emitting unit emits a sound wave of a second sound channel.

[0153] Optionally, the second switching unit comprises a second conversion switch, a third path and a fourth path, the third path is connected to the second diaphragm of the double-diaphragm loudspeaker, and the fourth path is connected to the fourth sound emitting unit.

[0154] The first output end is connected to the third path through the second conversion switch, so as to connect the fourth power amplifier unit and the second diaphragm of the double-diaphragm loudspeaker.

[0155] The second output end is connected to the fourth path through the second conversion switch, so as to connect the fourth power amplifier unit and the fourth sound emitting unit.

[0156] Optionally, the sound outlet of the first diaphragm of the double-diaphragm loudspeaker is arranged on the front surface of the electronic device, and the sound outlet of the second diaphragm of the double-diaphragm loudspeaker is arranged on the back surface or the top of the electronic device.

[0157] Through the above audio output unit 1003, the value of the second power amplifier unit or the fourth power amplifier unit is effectively utilized, the number of power amplifiers is saved, the increase of hardware cost is reduced, the switching connection path is set by the switching unit, and the audio bus interface occupation and the circuit board layout space occupation of the electronic device are reduced.

[0158] It should be understood that in the embodiments of the present application, the input unit 1004 can include a graphics processor (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 can include a display panel 10061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071, also known as a touch screen, can include two parts of a touch detection device and a touch controller. The other input devices 10072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), trackballs, mice, joysticks, and the like, which will not be described here.

[0159] The memory 1009 can be used to store software programs and various data. The memory 1009 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 1009 can include a volatile memory or a non-volatile memory, or the memory 1009 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable Programmable ROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synchlink DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0160] The processor 1010 can include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 401.

[0161] The embodiments of the application further provide a readable storage medium, and the readable storage medium stores programs or instructions, which are executed by a processor to realize each process of the above-mentioned audio playing circuit control method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0162] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0163] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize the processes of the above audio playing circuit control method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0164] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system or a system on chip, etc.

[0165] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and is executed by at least one processor to realize the processes of the above audio playing circuit control method embodiments and achieve the same technical effects. To avoid repetition, details are not described herein.

[0166] It should be noted that, in this document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of performing the functions as shown or discussed, but can also include performing the functions in a substantially simultaneous manner or in a reverse order, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.

[0167] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.

[0168] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. An audio playback circuit, characterized in that, include: First power amplifier unit, second power amplifier unit, first processing unit, first switching unit, first sound generation unit, second sound generation unit and third sound generation unit; The first processing unit is connected to the first sound-emitting unit through the first power amplifier unit; The first processing unit is connected to the input terminal of the first switching unit through the second power amplifier unit, and the first output terminal and the second output terminal of the first switching unit are respectively connected to the second sound-emitting unit and the third sound-emitting unit; The audio playback circuit has a first working state and a second working state. When the audio playback circuit is in the first working state, the first sound unit emits a first sound wave, which is the sound emitted by the electronic device from the front, and the second sound unit emits a second sound wave, which is the sound emitted by the electronic device from the back or top, and the first sound wave and the second sound wave are out of phase. When the audio playback circuit is in the second operating state, the first sound unit emits sound waves of the first channel, and the third sound unit emits sound waves of the second channel.

2. The audio playback circuit according to claim 1, characterized in that, The first switching unit includes: a first changeover switch, a first path and a second path, wherein the first path is connected to the second sound-emitting unit and the second path is connected to the third sound-emitting unit; The first output terminal is connected to the first path through the first changeover switch to connect the second power amplifier unit and the second sound-emitting unit. The second output terminal is connected to the second path through the first changeover switch to connect the second power amplifier unit and the third sound-emitting unit.

3. The audio playback circuit according to claim 1, characterized in that, The sound outlet of the first sound-emitting unit is located on the front of the electronic device, and the sound outlet of the second sound-emitting unit is located on the back or top of the electronic device.

4. An audio playback circuit, characterized in that, include: The system comprises a third power amplifier unit, a fourth power amplifier unit, a second processing unit, a second switching unit, a dual-diaphragm loudspeaker, and a fourth sound-emitting unit, wherein the dual-diaphragm loudspeaker includes a first diaphragm and a second diaphragm. The second processing unit is connected to the first diaphragm of the dual-diaphragm loudspeaker via the third power amplifier unit; The second processing unit is connected to the input terminal of the second switching unit through the fourth power amplifier unit, and the first output terminal and the second output terminal of the second switching unit are respectively connected to the second diaphragm and the fourth sound-emitting unit of the dual-diaphragm loudspeaker; The audio playback circuit has a third working state and a fourth working state. When the audio playback circuit is in the third working state, the first diaphragm of the dual-diaphragm speaker emits a first sound wave, which is the sound emitted by the electronic device from the front, and the second diaphragm of the dual-diaphragm speaker emits a second sound wave, which is the sound emitted by the electronic device from the back or top, and the first sound wave and the second sound wave are out of phase. When the audio playback circuit is in the fourth operating state, the first diaphragm of the dual-diaphragm speaker emits sound waves of the first channel, and the fourth sound-emitting unit emits sound waves of the second channel.

5. The audio playback circuit according to claim 4, characterized in that, The second switching unit includes: a second changeover switch, a third path, and a fourth path, wherein the third path is connected to the second diaphragm of the dual-diaphragm loudspeaker, and the fourth path is connected to the fourth sound-emitting unit; The first output terminal is connected to the third path through the second conversion switch to connect the fourth power amplifier unit to the second diaphragm of the dual-diaphragm speaker. The second output terminal is connected to the fourth path through the second conversion switch to connect the fourth power amplifier unit and the fourth sound-emitting unit.

6. The audio playback circuit according to claim 4, characterized in that, The sound outlet of the first diaphragm of the dual-diaphragm speaker is located on the front of the electronic device, and the sound outlet of the second diaphragm of the dual-diaphragm speaker is located on the back or top of the electronic device.

7. An audio playback circuit control method, applied to an audio playback circuit including any one of claims 1-3, characterized in that, The method includes: Obtain the audio playback mode of the electronic device; According to the audio playback mode, the first switching unit is controlled to switch the connection path of the second power amplifier unit to switch the working state of the audio playback circuit. When the connection path of the second power amplifier unit is connected to the second sound unit, the first sound unit is controlled to emit a first sound wave, the first sound wave being the sound emitted by the electronic device from the front, and the second sound unit emits a second sound wave, the second sound wave being the sound emitted by the electronic device from the back or top, so that the audio playback circuit is in the first working state, and the first sound wave and the second sound wave are out of phase. When the connection path of the second power amplifier unit is connected to the third sound unit, the first sound unit is controlled to emit sound waves of the first channel, and the third sound unit emits sound waves of the second channel, so that the audio playback circuit is in the second working state.

8. The method according to claim 7, characterized in that, The audio playback modes include earpiece mode and speaker mode. The step of controlling the first switching unit to switch the connection path of the second power amplifier unit according to the audio playback mode includes: When the audio playback mode is the earpiece mode, the first switching unit is controlled to switch the connection path, so that the second power amplifier unit is switched to be connected to the connection path of the second sound unit. When the audio playback mode is the external speaker mode, the first switching unit is controlled to switch the connection path, so that the second power amplifier unit switches to the connection path with the third sound unit.

9. An audio playback circuit control method, applied to an audio playback circuit including any one of claims 4-6, characterized in that, The method includes: Obtain the audio playback mode of the electronic device; According to the audio playback mode, the second switching unit is controlled to switch the connection path of the fourth power amplifier unit to switch the working state of the audio playback circuit. When the connection path of the fourth power amplifier unit is connected to the first diaphragm of the dual-diaphragm speaker, the first diaphragm of the dual-diaphragm speaker is controlled to emit a first sound wave, the first sound wave being the sound emitted by the electronic device from the front, and the second diaphragm of the dual-diaphragm speaker emits a second sound wave, the second sound wave being the sound emitted by the electronic device from the back or top, so that the audio playback circuit is in a third working state, the first sound wave and the second sound wave are out of phase; When the connection path of the fourth power amplifier unit is connected to the fourth sound-emitting unit, the first diaphragm of the dual-diaphragm speaker is controlled to emit sound waves of the first channel, and the fourth sound-emitting unit emits sound waves of the second channel, so that the audio playback circuit is in the fourth working state.

10. The method according to claim 9, characterized in that, The audio playback modes include earpiece mode and speaker mode. The step of controlling the second switching unit to switch the connection path of the fourth power amplifier unit according to the audio playback mode includes: When the audio playback mode is the earpiece mode, the second switching unit is controlled to switch the connection path, so that the fourth power amplifier unit is switched to be connected to the connection path of the second diaphragm of the dual-diaphragm speaker. When the audio playback mode is the external playback mode, the second switching unit is controlled to switch the connection path, so that the fourth power amplifier unit is switched to be connected to the connection path of the fourth sound-emitting unit.

Citation Information

Patent Citations

  • Audio output device and method, electronic equipment and computer readable storage medium

    CN114979933A

  • Automatic changing-over switch for loudspeaker

    CN2367042Y