Patent Description:
With the development of multimedia technologies, an electronic device has dual speakers, and plays audio by using the dual speakers, so that not volume is turned up, but a stereo field can also be formed.

In a related technology, dual speakers need to be provided with two intelligent power amplifiers, one is configured to drive a conventional speaker, and the other is configured to drive a two-in-one speaker. The two-in-one speaker includes two operating modes: a speaker mode and a receiver mode. When the two-in-one speaker is in the speaker mode, high volume is required, an output voltage of an intelligent power amplifier corresponding to the two-in-one speaker is high, and a current on a channel is large. When the two-in-one speaker is in the receiver mode, no excessively high volume is required, the output voltage of the intelligent power amplifier is low, and the current on the channel is small.

The two-in-one speaker is close to an antenna radiation position, and is therefore susceptible to interference from an antenna signal. When the two-in-one speaker is in the speaker mode, a corresponding intelligent power amplifier outputs a pulse width modulation (Pulse width modulation, PWM) wave. In this case, a boost voltage is high, and radio frequency receive performance is significantly affected. When the two-in-one speaker is in the receiver mode, in a global system for mobile communications (Global System for Mobile Communications, GSM) call scenario, antenna radiation also easily interferes with an audio channel.

It can be learned that in the existing technology, when the two-in-one speaker and a radio frequency module work at the same time, there is a problem of mutual interference.

<CIT> discloses a dual-mode drive device for a loudspeaker. The dual-mode drive device for the loudspeaker includes a class-D amplifier, and also includes a single-pole double-throw switch and a divider resistor, where the input end of the class-D amplifier is electrically connected with the signal input end, the output end of the class-D amplifier is electrically connected with the input end of the single-pole double-throw switch, the first output end of the single-pole double-throw switch is serially connected to the divider resistor and then is eclectically connected with the input end of the loudspeaker, the second output end of the single-pole double-throw switch is electrically connected with the input end of the loudspeaker, and the control end of the single-pole double-throw switch is electrically connected with a main control system of a mobile terminal.

Embodiments of the present invention provide an audio playing apparatus, an audio playing method, and an electronic device, to resolve a problem of mutual interference when a two-in-one speaker and a radio frequency module work at the same time.

To resolve the foregoing technical problem, the present invention is implemented as follows:.

According to a first aspect, an embodiment of the present invention provides an audio playing apparatus, including:.

According to a second aspect, an embodiment of the present invention further provides an audio playing method, applied to an electronic device, where the electronic device includes the foregoing audio playing apparatus, and the method includes:.

According to a third aspect, an embodiment of the present invention further provides an electronic device, including the foregoing audio playing apparatus, where the electronic device further includes:.

According to a fourth aspect, an embodiment of the present invention further provides an electronic terminal device, including a memory, a processor, and a computer program that is stored in the memory and that can run on the processor, where when the computer program is executed by the processor, steps in the foregoing audio playing method are implemented.

According to a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, steps in the foregoing audio playing method are implemented.

In embodiments of the present invention, the audio playing apparatus includes: a power amplifier module; a switch, where an input end of the switch is connected to the power amplifier module; a first noise suppression component and a second noise suppression component, where a first end of the first noise suppression component is connected to a first output end of the switch, and a first end of the second noise suppression component is connected to a second output end of the switch; and a speaker module, connected to a second end of the first noise suppression component and a second end of the second noise suppression component, where the speaker module has a receiver mode and a speaker mode. In a case that the speaker module is in the receiver mode, the input end of the switch is connected to the first output end of the switch, and an operating parameter of the first noise suppression component matches a first output current of the power amplifier module. In a case that the speaker module is in the speaker mode, the input end of the switch is connected to the second output end of the switch, and an operating parameter of the second noise suppression component matches a second output current of the power amplifier module. In this way, in a case that the speaker module is in the receiver mode, the speaker module may be connected to the first noise suppression component by using the switch, and in a case that the speaker module is in the speaker mode, the speaker module may be connected to the second noise suppression component by using the switch, thereby avoiding mutual interference between the speaker module and the electronic device when the speaker module is in different operating modes.

To describe the technical solutions of the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments of the present invention.

The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some rather than all of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

<FIG> is a structural diagram of an audio playing apparatus according to an embodiment of the present invention. As shown in <FIG>, the audio playing apparatus includes:.

In a case that the speaker module <NUM> is in the receiver mode, the input end of the switch <NUM> is connected to the first output end of the switch <NUM>, and an operating parameter of the first noise suppression component <NUM> matches a first output current of the power amplifier module <NUM>.

In a case that the speaker module <NUM> is in the speaker mode, the input end of the switch <NUM> is connected to the second output end of the switch <NUM>, and an operating parameter of the second noise suppression component <NUM> matches a second output current of the power amplifier module <NUM>.

The switch <NUM> includes one input end and two output ends, and the input end of the switch <NUM> may be connected to the first output end or the second output end. The speaker module <NUM> may be a two-in-one speaker in an related technology. The speaker module <NUM> can be used for stereo playback, that is, a speaker mode, and can also make a sound during a call in a handheld mode, that is, a receiver mode.

When the speaker module <NUM> works in the receiver mode, the input end of the switch <NUM> may be connected to the first output end, and the input end and the first output end may be specifically connected through control in a manual operation manner or intelligent control of the electronic device. In this case, the power amplifier module <NUM>, the first noise suppression component <NUM>, and the speaker module <NUM> form a channel. In the receiver mode, no excessively high volume is required. Therefore, in this case, an output voltage of the power amplifier module <NUM> is low, and overcurrent on an output channel is relatively small. A main function of the first noise suppression component <NUM> is to suppress current noise interference of time division duplex (Time Division Duplex, TDD) in GSM. An operating parameter that matches the overcurrent on the current channel may be selected as the operating parameter of the first noise suppression component <NUM>. In other words, a current noise suppression effect of the operating parameter of the first noise suppression component is better, and an overcurrent capability can meet a current requirement of the output channel. The first noise suppression component may be a magnetic bead, an inductor, or another component configured to suppress noise. For example, operating parameters of the first noise suppression component could be as follows: impedance at <NUM> is more than <NUM> kΩ, and an overcurrent capability is more than <NUM> A.

When the speaker module <NUM> works in the speaker mode, the input end of the switch <NUM> may be connected to the second output end, and the input end and the second output end may be specifically connected through control in a manual operation manner or intelligent control of the electronic device. In this case, the power amplifier module <NUM>, the second noise suppression component <NUM>, and the speaker module <NUM> form a channel. In the speaker mode, a relatively high volume is required. In this case, a voltage of the power amplifier module <NUM> is boosted, an output voltage is relatively high, and a current on an output channel is relatively large. In this case, an interference requirement on TDD current noise is relatively low, because the user's ear does not approach a speaker in the speaker mode. The operating parameter of the second noise suppression component <NUM> may match an overcurrent parameter on the current channel, and an overcurrent capability of the second noise suppression component can meet a current requirement of the output channel. The second noise suppression component may also be a magnetic bead, an inductor, or another component configured to suppress noise. The first noise suppression component and the second noise suppression component may be components of a same or different types. For example, operating parameters of the second noise suppression component could be as follows: an overcurrent capability is greater than <NUM> A, and impedance at <NUM> is approximately <NUM>Ω.

In this way, when the speaker module <NUM> is in the receiver mode and the speaker mode, the first noise suppression component <NUM> and the second noise suppression component <NUM> may be respectively used. Therefore, both a requirement for resisting TDD current noise in the receiver mode and a requirement for the overcurrent capability in the speaker mode are taken into account.

Optionally, impedance of the first noise suppression component <NUM> is greater than or equal to a preset impedance value, and an overcurrent capability of the first noise suppression component <NUM> is less than a preset current value; and impedance of the second noise suppression component <NUM> is less than the preset impedance value, and an overcurrent capability of the second noise suppression component <NUM> is greater than or equal to the preset current value.

In this implementation, no excessively high volume is required in the receiver mode. Therefore, an output voltage of the power amplifier module <NUM> is relatively low, and overcurrent on an output channel is relatively small. A main function of the first noise suppression component <NUM> is to suppress TDD interference in GSM, and a noise suppression component with relatively large impedance and a relatively small overcurrent capability may be selected, and the overcurrent capability of the first noise suppression component can meet an overcurrent value on the output channel.

In the speaker mode, an output voltage of the power amplifier module <NUM> is relatively high, and an overcurrent on the output channel is relatively large. An overcurrent capability of the second noise suppression component <NUM> is relatively large, an impedance value is relatively low, and the overcurrent capability of the second noise suppression component can meet the overcurrent requirement on the output channel.

A specific selected parameter value of the noise suppression component may be determined based on an actual requirement and an operating parameter of a circuit in an operating mode in which the speaker module is located.

Because the operating parameters of the first noise suppression component <NUM> and the second noise suppression component <NUM> are different, in different operating modes of the speaker module <NUM>, different noise suppression components can meet requirements of the different operating modes, and a function and an effect of the noise suppression component can be improved.

Optionally, as shown in <FIG>, the first noise suppression component <NUM> includes a first noise suppression sub-component <NUM> and a second noise suppression sub-component <NUM>, a first end of the first noise suppression sub-component <NUM> is connected to the first output end of the switch <NUM>, a second end of the first noise suppression sub-component <NUM> is connected to a positive electrode of the speaker module <NUM>, a first end of the second noise suppression sub-component <NUM> is connected to the input end of the switch <NUM>, and a second end of the second noise suppression sub-component <NUM> is connected to a negative electrode of the speaker module <NUM>.

In this implementation, for a circuit diagram of the first noise suppression component <NUM>, reference may be made to <FIG>.

When the noise suppression component shown in <FIG> is the first noise suppression component <NUM>, the first noise suppression component <NUM> may include the first noise suppression sub-component <NUM> and the second noise suppression sub-component <NUM>. The first noise suppression sub-component <NUM> and the second noise suppression sub-component <NUM> are respectively connected to the positive electrode and the negative electrode of the speaker module. For a specific manner of connecting the first noise suppression sub-component and the second noise suppression sub-component, reference may be made to the existing technology.

In this implementation, the power amplifier module may be connected to the first noise suppression component by using controlling a connection between the input end and the output end of the switch. The first noise suppression component includes the first noise suppression sub-component and the second noise suppression sub-component. When the power amplifier module is connected to the first noise suppression component by using the switch, a current channel can be formed between the first noise suppression sub-component and the second noise suppression sub-component, and an anti-current noise interference effect can be improved.

Optionally, the second noise suppression component <NUM> includes a third noise suppression sub-component and a fourth noise suppression sub-component, a first end of the third noise suppression sub-component is connected to the second output end of the switch <NUM>, a second end of the third noise suppression sub-component is connected to the positive electrode of the speaker module <NUM>, a first end of the fourth noise suppression sub-component is connected to the input end of the switch <NUM>, and a second end of the fourth noise suppression sub-component is connected to the negative electrode of the speaker module <NUM>.

In this implementation, for a circuit diagram of the second noise suppression component <NUM>, reference may also be made to <FIG>. When the noise suppression component shown in <FIG> is the second noise suppression component <NUM>, the first noise suppression component <NUM> may be replaced with the second noise suppression component <NUM>, the first noise suppression sub-component <NUM> and the second noise suppression sub-component <NUM> may be respectively replaced with the third noise suppression sub-component and the fourth noise suppression sub-component, and the third noise suppression sub-component and the fourth noise suppression sub-component are respectively connected to the positive electrode and the negative electrode of the speaker module. For a specific manner of connecting the third noise suppression sub-component and the fourth noise suppression sub-component, reference may be made to the existing technology.

In this implementation, the power amplifier module may be connected to the second noise suppression component by using controlling a connection between the input end and the output end of the switch. The second noise suppression component includes the third noise suppression sub-component and the fourth noise suppression sub-component. When the power amplifier module is connected to the second noise suppression component by using the switch, a current channel can be formed between the third noise suppression sub-component and the fourth noise suppression sub-component, and an effect of the speaker can be improved.

Optionally, when the speaker module in the foregoing audio playing apparatus is a two-in-one speaker, as shown in <FIG>, the apparatus further includes an intelligent power amplifier <NUM> and a common speaker <NUM>, an input end of the intelligent power amplifier <NUM> is connected to the processor <NUM>, and an output end of the intelligent power amplifier <NUM> is connected to the common speaker <NUM>.

The processor <NUM> is further configured to control the intelligent power amplifier <NUM> to output a voltage to the common speaker <NUM>, so that the intelligent power amplifier <NUM> drives the common speaker <NUM> to work.

In this implementation, the audio playing apparatus includes the common speaker <NUM> and the intelligent power amplifier <NUM>, where the common speaker <NUM> may be a module configured to implement a function of the common speaker. A third noise suppression component <NUM> may be added between the intelligent power amplifier <NUM> and the common speaker <NUM>, to filter out mutual interference between an output channel of the intelligent power amplifier and a radio frequency antenna. For a circuit connection manner of the third noise suppression component, reference may also be made to <FIG>. The processor <NUM> may control the intelligent power amplifier <NUM> to output a voltage to the common speaker <NUM>, to drive the common speaker to work.

In this way, the processor <NUM> may control, based on a user operation, the speaker module <NUM> such as the two-in-one speaker or the common speaker <NUM> to work, to start different operating modes.

An embodiment of the present invention further provides an electronic device. The electronic device includes the audio playing apparatus in any one of the foregoing implementations, and the electronic device has a beneficial effect in any one of the foregoing implementations.

Optionally, the electronic device includes a processor <NUM>, and the processor <NUM> is connected to the switch <NUM>. The processor <NUM> is configured to:.

In this implementation, the processor <NUM> is connected to the switch <NUM>, and the processor <NUM> may detect an operating mode in which the speaker module <NUM> is located, to automatically control, based on the operating mode, a connection between the input end and the output end of the switch <NUM>. For a connection circuit diagram of the processor <NUM> and the switch <NUM>, reference may be made to <FIG>.

Specifically, in a case that the processor <NUM> detects that the speaker module <NUM> is in the receiver mode, the processor <NUM> controls the input end of the switch <NUM> to be connected to the first output end, so that the power amplifier module <NUM> is connected to the first noise suppression component <NUM>. The operating parameter of the first noise suppression component <NUM> matches a parameter on an output channel of the power amplifier module <NUM>, and is mainly used to suppress noise interference, so that an effect of the speaker module can be improved.

In a case that the processor <NUM> detects that the speaker module <NUM> is in the speaker mode, the processor <NUM> controls the input end of the switch <NUM> to be connected to the second output end, so that the power amplifier module <NUM> is connected to the second noise suppression component <NUM>. The operating parameter of the second noise suppression component <NUM> matches the parameter on the output channel of the power amplifier module <NUM>, so that an effect of the speaker module can be improved.

In this way, the processor <NUM> may control the switch <NUM> to choose a noise suppression component based on the operating mode of the speaker module, so that an effect of the speaker module can be improved.

Referring to <FIG> is a flowchart of an audio playing method according to an embodiment of the present invention. The method is applied to an electronic device, and the electronic device includes the audio playing apparatus in the foregoing implementations. The audio playing method includes:
Step <NUM>: Receive a first input.

The user may operate the electronic device according to an actual requirement, that is, perform the first input. The first input may be an operation on a display, an operation on a physical key, a voice input, or the like, and this is not limited herein. The first input may be an operation of switching an operating mode or an initial operation of starting an operating mode, or may be an operation of starting a speaker module.

Step <NUM>: In response to the first input, switch the speaker module to a receiver mode, and connect the input end of the switch to the first output end.

The operating mode of the speaker module may include a receiver mode and a speaker mode.

In this step, the electronic device may obtain, in response to the first input, an operating mode started by the speaker module or an operating mode selected by the first input. In a case that the speaker module is switched to the receiver mode, the electronic device may control the input end of the switch to be connected to the first output end of the switch, so that the power amplifier module is connected to the first noise suppression component. Because the operating parameter of the first noise suppression component matches a current parameter on a channel in a current mode, and the parameter of the first noise suppression component can better suppress interference from TDD current noise, thus the effect of the speaker module is improved.

Step <NUM>: In response to the first input, switch the speaker module to a speaker mode, and connect the input end of the switch to the second output end.

In this step, a processor may obtain, in response to the first input, an operating mode started by the speaker module or an operating mode selected by the first input. In a case that the speaker module is switched to the speaker mode, the electronic device may control the input end of the switch to be connected to the second output end of the switch, so that the power amplifier module is connected to the second noise suppression component. Because the operating parameter of the second noise suppression component matches a current parameter on a channel in a current mode, thus the effect of the speaker can be improved.

In this implementation, the electronic device receives the first input, and may obtain the operating mode of the speaker module that is indicated by the first input, so that a connection between the input end of the switch and the output end may be controlled based on the operating mode indicated by the first input.

In this way, the processor can implement, based on an operation of a user, a connection to the noise suppression component by controlling the switch, so that the noise suppression component can meet a requirement of the operating mode of the speaker module, and an effect of the speaker module can be improved.

For a procedure of this embodiment, reference may be made to <FIG>. The electronic device receives an instruction of the user, that is, the first input, and determines the operating mode that needs to be enabled according to the instruction of the first input. In the speaker mode, the input end of the switch is controlled to be connected to the second output end, so that the power amplifier module is connected to the second noise suppression component, to enter a dual-speaker mode. In the receiver mode, the input end of the switch is controlled to be connected to the first output end, so that the power amplifier module is connected to the first noise suppression component, to enter the receiver mode.

In this embodiment of the present invention, the foregoing audio playing method may be applied to an electronic device, such as a mobile phone, a tablet personal computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA), a mobile Internet device (Mobile Internet Device, MID), or a wearable device (Wearable Device).

In the audio playing method in this embodiment of the present invention, the first input is received; and in response to the first input, the speaker module is switched to the receiver mode, and the input end of the switch is connected to the first output end; or in response to the first input, the speaker module is switched to the speaker mode, and the input end of the switch is connected to the second output end. In this way, a connection to the noise suppression component may be implemented based on an operation of the user by controlling the switch, so that the noise suppression component can meet a requirement of the operating mode of the speaker module, and an effect of the speaker module can be improved.

<FIG> is a structural diagram of an electronic device according to an embodiment of the present invention. The electronic device includes the audio playing apparatus according to any one of the foregoing implementations. As shown FIGFIG. <NUM>, an electronic device <NUM> includes:.

The electronic device <NUM> can implement processes implemented by the electronic device in the foregoing method embodiments. To avoid repetition, details are not described herein again.

The electronic device <NUM> in this embodiment of the present invention can connect a noise suppression component based on an operation of a user by controlling the switch, so that the noise suppression component meets a requirement of the operating mode of the speaker module, thereby avoiding mutual interference between the speaker module and the electronic device when the speaker module is in different operating modes.

<FIG> is a schematic diagram of a hardware structure of an electronic device for implementing embodiments of the present invention. The electronic device <NUM> includes but is not limited to components such as a radio frequency unit <NUM>, a network module <NUM>, an audio output unit <NUM>, an input unit <NUM>, a sensor <NUM>, a display unit <NUM>, a user input unit <NUM>, an interface unit <NUM>, a memory <NUM>, a processor <NUM>, and a power supply <NUM>. A person skilled in the art may understand that a structure of the electronic device shown in <FIG> does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements. In this embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a palmtop computer, an in-vehicle mobile terminal, a wearable device, a pedometer, and the like.

The processor <NUM> is configured to: receive a first input; and in response to the first input, switch the speaker module to the receiver mode, and connect the input end of the switch to the first output end; or in response to the first input, switch the speaker module to the speaker mode, and connect the input end of the switch to the second output end.

In this way, a noise suppression component can be connected based on an operation of a user by controlling the switch, so that the noise suppression component meets a requirement of the operating mode of the speaker module, thereby avoiding mutual interference between the speaker module and the electronic device when the speaker module is in different operating modes.

It should be understood that, in this embodiment of the present invention, the radio frequency unit <NUM> may be configured to receive and send information or receive and send a signal in a call process. Specifically, after downlink data from a base station is received, the processor <NUM> processes the downlink data. In addition, uplink data is sent to the base station. Generally, the radio frequency unit <NUM> includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit <NUM> may further communicate with a network and another device by using a wireless communication system.

The electronic device provides wireless broadband Internet access for the user by using the network module <NUM>, for example, helping the user send and receive an email, browse a web page, and access streaming media.

The audio output unit <NUM> may convert audio data received by the radio frequency unit <NUM> or the network module <NUM> or stored in the memory <NUM> into an audio signal and output as sound. In addition, the audio output unit <NUM> may further provide audio output (for example, call signal receiving sound or message receiving sound) related to a specific function performed by the electronic device <NUM>. The audio output unit <NUM> includes a speaker, a buzzer, a telephone receiver, and the like.

The input unit <NUM> is configured to receive an audio or video signal. The input unit <NUM> may include a graphics processing unit (Graphics Processing Unit, GPU) <NUM> and a microphone <NUM>. The graphics processing unit <NUM> processes image data of a static picture or a video obtained by an image capture apparatus (such as a camera) in a video capture mode or an image capture mode. A processed image frame may be displayed on the display unit <NUM>. The image frame processed by the graphics processing unit <NUM> may be stored in the memory <NUM> (or another storage medium) or sent by using the radio frequency unit <NUM> or the network module <NUM>. The microphone <NUM> may receive sound and can process such sound into audio data. The processed audio data may be output by being converted into a format that may be sent to a mobile communications base station by using the radio frequency unit <NUM> in a telephone call mode.

The electronic device <NUM> further includes at least one sensor <NUM>, such as an optional sensor, a motion sensor, and another sensor. Specifically, the optical sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of a display panel <NUM> based on brightness of ambient light, and the proximity sensor may disable the display panel <NUM> and/or backlight when the electronic device <NUM> approaches an ear. As a type of the motion sensor, an accelerometer sensor may detect magnitude of an acceleration in each direction (generally three axes), and may detect magnitude and a direction of gravity when being static. The accelerometer sensor may be used for recognizing an electronic device gesture (for example, horizontal and vertical screen switching, a related game, or magnetometer posture calibration), a function related to vibration recognition (for example, a pedometer or a strike), or the like. The sensor <NUM> may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like. This is not described herein.

The display unit <NUM> is configured to display information entered by the user or information provided for the user. The display unit <NUM> may include a display panel <NUM>, and the display panel <NUM> may be configured in a form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

The user input unit <NUM> may be configured to receive input digit or character information and generate key signal input related to user setting and function control of the electronic device. Specifically, the user input unit <NUM> includes a touch panel <NUM> and another input device <NUM>. The touch panel <NUM>, also referred to as a touchscreen, may collect a touch operation performed by the user on or near the touch panel <NUM> (for example, an operation performed by the user on or near the touch panel <NUM> by using any suitable object or accessory such as a finger or a stylus). The touch panel <NUM> may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch position of the user, detects a signal brought by the touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection apparatus, converts the touch information into contact coordinates, sends the contact coordinates to the processor <NUM>, and can receive and execute a command sent by the processor <NUM>. In addition, the touch panel <NUM> may be implemented by using multiple types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit <NUM> may include another input device <NUM> in addition to the touch panel <NUM>. Specifically, the another input device <NUM> may include but is not limited to one or more of a physical keyboard, a function key (such as a volume control key or an on/off key), a trackball, a mouse, a joystick, and the like.

Further, the touch panel <NUM> may cover the display panel <NUM>. After detecting the touch operation on or near the touch panel <NUM>, the touch panel <NUM> transmits the touch operation to the processor <NUM> to determine a type of a touch event, and then the processor <NUM> provides corresponding visual output on the display panel <NUM> based on the type of the touch event. In <FIG>, the touch panel <NUM> and the display panel <NUM> are used as two independent components to implement input and output functions of the electronic device. However, in some embodiments, the touch panel <NUM> and the display panel <NUM> may be integrated to implement the input and output functions of the electronic device. This is not specifically limited herein.

The interface unit <NUM> is an interface connecting an external apparatus to the electronic device <NUM>. For example, the external apparatus may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a storage card port, a port configured to connect to an apparatus having an identification module, an audio input/output (I/O) port, a video I/O port, a headset port, and the like. The interface unit <NUM> may be configured to receive input (for example, data information and power) from the external apparatus and transmit the received input to one or more elements in the electronic device <NUM>, or may be configured to transmit data between the electronic device <NUM> and the external apparatus.

The memory <NUM> may be configured to store a software program and various data. The memory <NUM> may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound play function or an image play function), and the like. The data storage area may store data (such as audio data or an address book) or the like created based on use of the electronic device. In addition, the memory <NUM> may include a high-speed random access memory, and may further include a non-volatile memory such as at least one magnetic disk storage component, a flash memory component, or another volatile solid-state storage component.

The processor <NUM> is a control center of the electronic device, and is connected to all parts of the entire electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing the software program and/or the module that are stored in the memory <NUM> and invoking the data stored in the memory <NUM>, to implement overall monitoring on the electronic device. The processor <NUM> may include one or more processing units. Preferentially, the processor <NUM> may be integrated with an application processor and a modem processor. The application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It may be understood that the modem processor may also not be integrated into the processor <NUM>.

The electronic device <NUM> may further include a power supply <NUM> (such as a battery) that supplies power to each component. Preferably, the power supply <NUM> may be logically connected to the processor <NUM> by using a power management system, to implement functions such as charging, discharging, and power consumption management by using the power management system.

In addition, the electronic device <NUM> includes some function modules not shown, and details are not described herein.

Preferably, an embodiment of the present invention further provides an electronic device, including a processor <NUM>, a memory <NUM>, and a computer program that is stored in the memory <NUM> and may run on the processor <NUM>. When the computer program is executed by the processor <NUM>, processes of the embodiment of the foregoing audio playing method can be implemented, and a same technical effect can be achieved. To avoid repetition, details are not described herein.

An embodiment of the present invention further provides a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When being executed by a processor, processes of the embodiment of the foregoing audio playing method can be implemented, and a same technical effect can be achieved. To avoid repetition, details are not described herein. The computer-readable storage medium includes a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, an optical disc, or the like.

It should be noted that in this specification, the term "include", "including", or any other variant is intended to cover non-exclusive inclusion, so that a process, method, article, or apparatus that includes a series of elements includes not only those elements but also other elements that are not explicitly listed, or includes elements inherent to such a process, method, article, or apparatus. In the absence of more restrictions, an element defined by the statement "including a. " does not exclude another same element in a process, method, article, or apparatus that includes the element.

According to the descriptions of the foregoing implementations, a person skilled in the art may clearly understand that the foregoing method embodiments may be implemented by using software and a required universal hardware platform, or certainly may be implemented by using hardware. However, in many cases, the former is a better implementation. Based on such an understanding, the technical solutions of the present invention essentially or the part contributing to existing technologies may be implemented in a form of a software product. The computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, or an optical disc) and includes several instructions for instructing an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods described in the embodiments of the present invention.

Claim 1:
An audio playing apparatus, comprising:
a power amplifier module (<NUM>);
a switch (<NUM>), wherein an input end of the switch (<NUM>) is connected to the power amplifier module (<NUM>);
a first noise suppression component (<NUM>) and a second noise suppression component (<NUM>), wherein a first end of the first noise suppression component (<NUM>) is connected to a first output end of the switch (<NUM>), and a first end of the second noise suppression component (<NUM>) is connected to a second output end of the switch (<NUM>); and
a speaker module (<NUM>), connected to a second end of the first noise suppression component (<NUM>) and a second end of the second noise suppression component (<NUM>), wherein the speaker module (<NUM>) has a receiver mode and a speaker mode; wherein
in a case that the speaker module (<NUM>) is in the receiver mode, the input end of the switch (<NUM>) is connected to the first output end of the switch (<NUM>), and an operating parameter of the first noise suppression component (<NUM>) matches a first output current of the power amplifier module (<NUM>) to suppress current noise interference; and
in a case that the speaker module (<NUM>) is in the speaker mode, the input end of the switch (<NUM>) is connected to the second output end of the switch (<NUM>), and an operating parameter of the second noise suppression component (<NUM>) matches a second output current of the power amplifier module (<NUM>) to suppress current noise interference;
wherein the first noise suppression component (<NUM>) is a first magnetic bead or a first inductor, the operating parameter of the first noise suppression component (<NUM>) is first impedance and
a first overcurrent capability, the first impedance is greater than or equal to a preset impedance value, and the first overcurrent capability is less than a preset current value;
the second noise suppression component (<NUM>) is a second magnetic bead or a second inductor, the operating parameter of the second noise suppression component (<NUM>) is second impedance and
a second overcurrent capability, the second impedance is less than the preset impedance value, and the second overcurrent capability is greater than or equal to the preset current value.