Patent Description:
With the rapid development of electronic devices, electronic devices are more widely used. Electronic devices such as mobile phones and tablet computers play more roles in work, life, and entertainment of people.

Currently, most electronic devices have a housing. The housing can protect internal components of the electronic devices. To reduce manufacturing costs of electronic devices, electronic device manufacturers are encouraged to use low-cost housings. Such housings are usually relatively thin, or strength of a material is relatively low, so that strength of the housings is relatively low. Because a back cavity of a receiver or a back cavity of a loudspeaker in an electronic device is formed by a housing, in a case that the receiver or loudspeaker vibrates, the receiver or loudspeaker easily drives the housing with relatively low strength to vibrate through the back cavity, thereby causing the electronic device to generate noise or relatively large vibration due to vibration of the housing.

For example, when a user holds a mobile phone during a call, due to vibration of a receiver or a loudspeaker, a housing of the mobile phone vibrates and the user can directly feel the vibration of the housing.

<CIT> discloses that an electronic device, which is used for preventing leakage of a received sound, includes a receiver which outputs the received sound; a receiving portion which receives the receiver; and a hole which communicates with the receiving portion.

<CIT> discloses a mobile terminal including: a first sound producing member arranged on the front face of the mobile terminal; a second sound producing member arranged on the back surface of the mobile terminal; an exciter disposed between the first sound producing member and the second sound producing member, and the exciter is in contact with the first sound producing member and the second sound producing member, respectively. The exciter is configured to drive the first sound producing member and the second sound producing member to resonantly produce sound.

<CIT> discloses a speaker assembly including: a housing with an accommodation space formed by a top wall, a bottom wall, and a sidewall; a speaker received in the accommodation space. The speaker includes a first unit having a first diaphragm and a second unit having a second diaphragm; a first back cavity formed by the first unit and the bottom wall; a second back cavity formed by the second unit and the top wall. An auxiliary cavity is formed by the second diaphragm and the bottom wall; a partition wall connecting between the top wall and the bottom wall for separating the auxiliary cavity from the first back cavity.

This application discloses an electronic device, a control method and control apparatus thereof, which can resolve a current problem that a housing vibrates when an electronic device outputs audio.

To resolve the foregoing technical problem, this application is implemented as follows:.

According to a first aspect, an embodiment of this application discloses an electronic device, which is defined in claim <NUM>.

According to a second aspect, an embodiment of this application discloses a control method of an electronic device, which is defined in claim <NUM>.

According to a third aspect, an embodiment of this application discloses a control apparatus of an electronic device, which is defined in claim <NUM>.

According to a fourth aspect, an embodiment of this application discloses a terminal device, which is defined in claim <NUM>.

According to a fifth aspect, an embodiment of this application discloses a readable storage medium, which is defined in claim <NUM>.

Further advantageous embodiments of the present application are indicated in the dependent claims. It is to be understood that both the foregoing general description and the following detailed description are exemplary only, are not restrictive of the present disclosure.

To clearly state the objectives, technical solutions, and advantages of this application, the technical solutions of this application will be clearly and completely described below with reference to specific embodiments of this application and corresponding accompanying drawings. Apparently, the described embodiments are some embodiments rather than all the embodiments of this application.

The specification and claims of this application, and terms "first" and "second" are used to distinguish similar objects, but are unnecessarily used to describe a specific sequence or order. It should be understood that the data so used may be interchanged in an appropriate condition, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein. Objects distinguished by "first" and "second" are usually of one type, and the number of objects is not limited. For example, a first object may be one or more. In addition, "and/or" in the specification and claims denotes at least one of the connected objects, and the character "/" generally indicates an "or" relationship between the associated objects.

With reference to the accompanying drawings, the technical solutions disclosed in embodiments of this application are described in detail through specific embodiments and application scenarios thereof.

Referring to <FIG>, an embodiment of this application discloses an electronic device, where the disclosed electronic device includes a housing <NUM>, a first sound generating module <NUM>, and a second sound generating module <NUM>.

The housing <NUM> is a basic component of the electronic device and can provide a mounting base for another component of the electronic device. In this embodiment of this application, the housing <NUM> has an accommodating space, the accommodating space includes a first accommodating cavity <NUM>, and an inner wall of the housing <NUM> forms at least a portion of a cavity wall of the first accommodating cavity <NUM>.

The first sound generating module <NUM> may be a loudspeaker or a speaker, and the first sound generating module <NUM> is disposed in the first accommodating cavity <NUM>. The second sound generating module <NUM> may be a loudspeaker or a speaker, and the second sound generating module <NUM> is disposed in the accommodating space.

In a case that both the first sound generating module <NUM> and the second sound generating module <NUM> are in contact with the cavity wall, when the first sound generating module <NUM> is in a first operating state, the second sound generating module <NUM> is in a second operating state, the first sound generating module <NUM> outputs a first vibration signal to the housing <NUM>, and the second sound generating module <NUM> outputs a second vibration signal to the housing <NUM>, where a phase of the first vibration signal is opposite to that of the second vibration signal, so that vibration caused by the first vibration signal to the housing <NUM> and vibration caused by the second vibration signal to the housing <NUM> are canceled out by each other.

In a case that both the first sound generating module <NUM> and the second sound generating module <NUM> are spaced from the cavity wall, when the first sound generating module <NUM> is in a first operating state, the second sound generating module <NUM> is in a second operating state, sound waves emitted by the first sound generating module <NUM> form first sound waves in the first accommodating cavity <NUM>, and sound waves emitted by the second sound generating module <NUM> form second sound waves in the first accommodating cavity <NUM>, where a phase of the first sound waves is opposite to a phase of the second sound waves, and the first sound waves and the second sound waves with opposite phases can implement interference cancellation.

In a case that the first sound generating module <NUM> is in contact with the cavity wall and the second sound generating module <NUM> is spaced from the cavity wall, when the first sound generating module <NUM> is in a first operating state, the second sound generating module <NUM> is in a second operating state, the first sound generating module <NUM> outputs a first vibration signal to the housing <NUM>, and sound waves emitted by the second sound generating module <NUM> form second sound waves in the first accommodating cavity <NUM>, where a phase of the first vibration signal is the same as the phase of the first sound waves, that is, the phase of the first vibration signal is opposite to the phase of the second sound waves, so that vibration caused by the first vibration signal to the housing <NUM> and vibration caused by the second sound waves to the housing <NUM> are canceled out by each other.

In a specific working process, when the housing <NUM> of the electronic device is found to vibrate, the second sound generating module <NUM> is controlled to be in the second operating state, so that the second sound generating module <NUM> outputs the second vibration signal to the housing <NUM>, or the sound waves emitted by the second sound generating module <NUM> form the second sound waves in the first accommodating cavity <NUM>, so that vibration caused by the first vibration signal to the housing <NUM> and vibration caused by the second vibration signal to the housing <NUM> are canceled out by each other, or the second sound waves emitted by the second sound generating module <NUM> cancel out the first sound waves, or vibration caused by the first vibration signal to the housing <NUM> and vibration caused by the second sound waves to the housing <NUM> are canceled out by each other, to prevent the housing <NUM> of the electronic device from vibrating, and prevent the electronic device from generating noise or relatively large vibration due to vibration of the housing <NUM>, thereby preventing a user from directly feeling vibration of the housing <NUM>, improving use experience of the user, and finally resolving a current problem that the housing vibrates when the electronic device outputs audio.

Specifically, the first sound generating module <NUM> may be a loudspeaker of the electronic device, and the second sound generating module <NUM> may be a receiver of the electronic device. The loudspeaker and the receiver are existing apparatuses in the electronic device. By utilizing the existing loudspeaker and receiver in the electronic device, it can be avoided that a new component is added inside the electronic device, so that the loudspeaker and the receiver can play a dual-purpose effect, thereby reducing internal stacking difficulty of the electronic device and further reducing costs of the electronic device.

As mentioned above, the housing <NUM> has the accommodating space, the accommodating space includes the first accommodating cavity <NUM>, and the inner wall of the housing <NUM> forms at least a portion of the cavity wall of the first accommodating cavity <NUM>. In an optional embodiment, the housing <NUM> may include a rear cover <NUM> and a middle frame <NUM>, and the rear cover <NUM> and the middle frame <NUM> may be enclosed to form the accommodating space. a raised part <NUM> may be disposed on the middle frame <NUM>, and the raised part <NUM> may divide the accommodating space into a first mounting cavity <NUM> and the first accommodating cavity <NUM>. The second sound generating module <NUM> may be disposed in the first mounting cavity <NUM>, the raised part <NUM> may be provided with a sound guide channel <NUM>, and the first mounting cavity <NUM> may be in communication with the first accommodating cavity <NUM> through the sound guide channel <NUM>. In this case, sound waves emitted by the second sound generating module <NUM> may be transmitted to the first accommodating cavity <NUM> through the sound guide channel <NUM> to form the second sound waves in the first accommodating cavity <NUM>, thereby ensuring that the second sound waves emitted by the second sound generating module <NUM> can cancel out the first sound waves, or vibration caused by the first vibration signal to the housing <NUM> and vibration caused by the second sound waves to the housing <NUM> can be canceled out by each other.

To enable the sound waves emitted by the second sound generating module <NUM> to be transmitted into the first accommodating cavity <NUM> as much as possible through the sound guide channel <NUM>, in an optional embodiment, a first end of the sound guide channel <NUM> may be distributed opposite to the second sound generating module <NUM>, the sound waves emitted by the second sound generating module <NUM> can directly enter the sound guide channel <NUM> through the first end of the sound guide channel <NUM>, thereby being transmitted into the first accommodating cavity <NUM> as much as possible through the sound guide channel <NUM>, reducing loss of the second sound waves, so that the second sound waves have better cancellation effect on the first sound waves.

Further, the raised part <NUM> may have a first surface facing the second sound generating module <NUM> and a second surface facing the rear cover <NUM>, the first end of the sound guide channel <NUM> may be located on the first surface, and a second end of the sound guide channel <NUM> may be located on the second surface. In this case, the sound waves emitted by the second sound generating module <NUM> enter through the first end of the sound guide channel <NUM>, and are then transmitted from the second end of the sound guide channel <NUM>. Because the second end of the sound guide channel <NUM> faces the rear cover <NUM>, the sound waves emitted by the second sound generating module <NUM> can directly act on the rear cover <NUM>, thereby further relieving vibration of the rear cover <NUM>. Specifically, the sound guide channel <NUM> may be a notch, a groove, or a through hole. This is not limited in this embodiment of this application.

In an optional embodiment, the second sound generating module <NUM> may include a module housing and a sound generating body, the module housing may be provided with a second accommodating cavity, and the sound generating body may be disposed in the second accommodating cavity. The module housing may be provided with a first sound guide hole <NUM>, and the second accommodating cavity may be in communication with the sound guide channel <NUM> through the first sound guide hole <NUM>, so that the sound waves emitted by the second sound generating module <NUM> are transmitted through the first sound guide hole <NUM> and the sound guide channel <NUM>, thereby preventing the sound waves emitted by the second sound generating module <NUM> from leaking from the electronic device and resulting in a relatively poor sound feature of the electronic device, and preventing the electronic device from generating noise when outputting audio.

Further, the sound generating body may divide the second accommodating cavity into a front cavity and a back cavity, and the first sound guide hole <NUM> may be in communication with the front cavity. In this case, the first accommodating cavity <NUM> is a back cavity of the first sound generating module <NUM>, and a front cavity of the second sound generating module <NUM> is in communication with the first accommodating cavity <NUM>. Because phases of sound waves in the front cavity and the back cavity of the sound generating module are opposite, the first sound generating module <NUM> and the second sound generating module <NUM> may output same audio. By communicating the back cavity of the first sound generating module <NUM> with the front cavity of the second sound generating module <NUM>, the phase of the first sound waves is opposite to that of the second sound waves in the first accommodating cavity <NUM>. This arrangement manner can facilitate the electronic device to control audio output, an audio signal of the first sound generating module <NUM> and an audio signal of the second sound generating module <NUM> do not need to be inverted. In addition, the back cavity of the second sound generating module <NUM> can be prevented from generating noise, so that the sound feature of the electronic device is relatively high to further prevent the electronic device from generating noise when outputting audio.

As described above, the second sound generating module <NUM> may be a receiver of the electronic device. Specifically, the housing <NUM> may be provided with a second sound guide hole <NUM>, the second sound guide hole <NUM> may be in communication with outside of the electronic device, and the second sound generating module <NUM> is distributed opposite to the second sound guide hole <NUM>, so that the second sound generating module <NUM> can be configured to eliminate vibration of the housing <NUM>, and can also be configured to output audio, and the second sound generating module <NUM> can implement a dual-purpose effect.

Optionally, a sound insulation portion is movably disposed at the second sound guide hole <NUM>, and the sound insulation portion is switchable between a first state and a second state. In a case that the sound insulation portion is in the first state, the sound insulation portion may block the second sound guide hole <NUM>; or in a case that the sound insulation portion is in the second state, the sound insulation portion may avoid the second sound guide hole <NUM>. In a specific working process, when the second sound generating module <NUM> needs to output audio, the sound insulation portion is controlled to be in the second state, so that the sound waves emitted by the second sound generating module <NUM> can be transmitted to outside of the electronic device through the second sound guide hole <NUM>. When the second sound generating module <NUM> needs to eliminate vibration of the housing <NUM>, the sound insulation portion is controlled to be in the first state, so that the sound waves emitted by the second sound generating module <NUM> cancel out the first sound waves. In this case, a use scenario of the second sound generating module <NUM> is increased, so that the second sound generating module <NUM> implements a dual-purpose effect, and this arrangement manner can cause the second sound generating module <NUM> to operate better in both the first state and the second state.

As described above, the first sound generating module <NUM> may be a loudspeaker of the electronic device. Specifically, the electronic device may further include a display module <NUM>, where the display module <NUM> may be disposed in the housing <NUM>, a third sound guide hole is formed between the display module <NUM> and the housing <NUM>, and the first sound generating module <NUM> is in communication with outside of the electronic device through the third sound guide hole. In this case, a sound emitted by the first sound generating module <NUM> can be transmitted to outside of the electronic device through the third sound guide hole, ensuring that the electronic device can normally output audio. In addition, the display module <NUM> is in clearance fit with the housing <NUM> to form the third sound guide hole. In this manner, it can be avoided that a hole is opened on the housing of the electronic device, thereby improving integrity of the electronic device.

Based on the electronic device disclosed in this embodiment of this application, this embodiment of this application further discloses a control method of the electronic device, where the electronic device includes the housing <NUM> having the accommodating space, the accommodating space includes the first accommodating cavity <NUM>, and the inner wall of the housing <NUM> forms at least a portion of the cavity wall of the first accommodating cavity <NUM>; the first sound generating module <NUM>, disposed in the first accommodating cavity <NUM>; and the second sound generating module <NUM>, disposed in the accommodating space, where in a case that both the first sound generating module <NUM> and the second sound generating module <NUM> are in contact with the cavity wall, when the first sound generating module <NUM> is in the first operating state, the second sound generating module <NUM> is in the second operating state, the first sound generating module <NUM> outputs the first vibration signal to the housing <NUM>, and the second sound generating module <NUM> outputs the second vibration signal to the housing <NUM>; in a case that both the first sound generating module <NUM> and the second sound generating module <NUM> are spaced from the cavity wall, when the first sound generating module <NUM> is in the first operating state, the second sound generating module <NUM> is in the second operating state, the sound waves emitted by the first sound generating module <NUM> form the first sound waves in the first accommodating cavity <NUM>, and the sound waves emitted by the second sound generating module <NUM> form the second sound waves in the first accommodating cavity <NUM>; or in a case that the first sound generating module <NUM> is in contact with the cavity wall and the second sound generating module <NUM> is spaced from the cavity wall, when the first sound generating module <NUM> is in the first operating state, the second sound generating module <NUM> is in the second operating state, the first sound generating module <NUM> outputs the first vibration signal to the housing <NUM>, and the sound waves emitted by the second sound generating module <NUM> form the second sound waves in the first accommodating cavity <NUM>, where the phase of the first vibration signal is opposite to the phrase of the second vibration signal, the phase of the first sound waves is opposite to the phrase of the second sound waves, and the phase of the first vibration signal is the same as the phrase of the first sound waves; and
the disclosed control method includes:.

In this embodiment of this application, the second sound generating module <NUM> operates under the second audio parameter according to the first audio parameter. Optionally, the first audio parameter may include a first amplitude and the second audio parameter may include a second amplitude. The control method may further include:
Step <NUM>. Adjust the second amplitude according to the first amplitude, so that the second amplitude is equal to the first amplitude.

In this case, the phase of the first sound waves is opposite to that of the second sound waves, the amplitudes are equal, and the second sound waves can cancel out more of the first sound waves. In this manner, the first sound waves can be undoubtedly canceled out to a relatively high degree, which further alleviates vibration of the housing <NUM>, and causes the use experience of the user to be better.

In another optional embodiment, step <NUM>. Adjust the second amplitude according to the first amplitude, so that the second amplitude is less than the first amplitude, and the second sound waves can not only slow down vibration of the housing <NUM>, but also avoid excessive sound leakage of the electronic device.

In an optional embodiment, the housing <NUM> is provided with the second sound guide hole <NUM>, where the second sound guide hole <NUM> is in communication with outside of the electronic device. The second sound generating module <NUM> is distributed opposite to the second sound guide hole <NUM>, the sound insulation portion is movably disposed at the second sound guide hole <NUM>, and the sound insulation portion is switchable between the first state and the second state. In a case that the sound insulation portion is in the first state, the sound insulation portion blocks the second sound guide hole <NUM>; or in a case that the sound insulation portion is in the second state, the sound insulation portion avoids the second sound guide hole <NUM>. Step <NUM> may include:
Step <NUM>. Control, according to the first audio parameter, the second sound generating module <NUM> to be in the second operating state, control the second sound generating module <NUM> to operate according to the second audio parameter, and control the sound insulation portion to be in the first state.

In a specific working process, when the second sound generating module <NUM> needs to eliminate vibration of the housing <NUM>, the sound insulation portion is controlled to be in the first state, so that the sound waves emitted by the second sound generating module <NUM> cancel out the first sound waves, and the second sound generating module <NUM> can be configured to eliminate vibration of the housing <NUM>, and this arrangement manner can cause the second sound generating module <NUM> to operate better in both the first state and the second state.

Further, the second sound generating module <NUM> may have a third operating state, and in a case that the second sound generating module <NUM> is in the third operating state, the sound waves emitted by the second sound generating module <NUM> can be transmitted to outside of the electronic device through the second sound guide hole <NUM>. The control method may further include:.

In a specific working process, when the second sound generating module <NUM> needs to output audio, the sound insulation portion is controlled to be in the second state, so that the sound waves emitted by the second sound generating module <NUM> can be transmitted to outside of the electronic device through the second sound guide hole <NUM>. In this case, the second sound generating module <NUM> can not only be configured to eliminate vibration of the housing <NUM>, but also can be configured to output audio and increase a use scenario of the second sound generating module <NUM>, so that the second sound generating module <NUM> implements a dual-purpose effect, and this arrangement manner can cause the second sound generating module <NUM> to operate better in both the first state and the second state.

The electronic device disclosed in this embodiment of this application can implement processes implemented by the electronic device in the foregoing method embodiments, and details are not described herein again to avoid repetition.

This embodiment of this application further discloses a control apparatus of the electronic device, where the electronic device includes the housing <NUM>, the housing <NUM> has the accommodating space, the accommodating space includes the first accommodating cavity <NUM>, and the inner wall of the housing <NUM> forms at least a portion of the cavity wall of the first accommodating cavity <NUM>; the first sound generating module <NUM>, disposed in the first accommodating cavity <NUM>; and the second sound generating module <NUM>, disposed in the accommodating space, where in a case that both the first sound generating module <NUM> and the second sound generating module <NUM> are in contact with the cavity wall, when the first sound generating module <NUM> is in the first operating state, the second sound generating module <NUM> is in the second operating state, the first sound generating module <NUM> outputs the first vibration signal to the housing <NUM>, and the second sound generating module <NUM> outputs the second vibration signal to the housing <NUM>; in a case that both the first sound generating module <NUM> and the second sound generating module <NUM> are spaced from the cavity wall, when the first sound generating module <NUM> is in the first operating state, the second sound generating module <NUM> is in the second operating state, the sound waves emitted by the first sound generating module <NUM> form the first sound waves in the first accommodating cavity <NUM>, and the sound waves emitted by the second sound generating module <NUM> form the second sound waves in the first accommodating cavity <NUM>; or in a case that the first sound generating module <NUM> is in contact with the cavity wall and the second sound generating module <NUM> is spaced from the cavity wall, when the first sound generating module <NUM> is in the first operating state, the second sound generating module <NUM> is in the second operating state, the first sound generating module <NUM> outputs the first vibration signal to the housing <NUM>, and the sound waves emitted by the second sound generating module <NUM> form the second sound waves in the first accommodating cavity <NUM>, where the phase of the first vibration signal is opposite to the phrase of the second vibration signal, the phase of the first sound waves is opposite to the phrase of the second sound waves, and the phase of the first vibration signal is the same as the phrase of the first sound waves; and
the disclosed control apparatus includes:.

In a specific working process, when the obtaining module finds that the housing <NUM> of the electronic device vibrates, the first control module controls the second sound generating module <NUM> to be in the second operating state, so that the second sound generating module <NUM> outputs the second vibration signal to the housing <NUM>, or the sound waves emitted by the second sound generating module <NUM> form the second sound waves in the first accommodating cavity <NUM>, so that vibration caused by the first vibration signal to the housing <NUM> and vibration caused by the second vibration signal to the housing <NUM> are canceled out by each other, or the second sound waves emitted by the second sound generating module <NUM> cancel out the first sound waves, or vibration caused by the first vibration signal to the housing <NUM> and vibration caused by the second sound waves to the housing <NUM> are canceled out by each other, to prevent the housing <NUM> of the electronic device from vibrating, and prevent the electronic device from generating noise or relatively large vibration due to vibration of the housing <NUM>, thereby preventing a user from directly feeling vibration of the housing <NUM>, improving use experience of the user, and finally resolving a current problem that the housing vibrates when the electronic device outputs audio.

In this embodiment of this application, the second sound generating module <NUM> operates under the second audio parameter according to the first audio parameter. Optionally, the first audio parameter may include the first amplitude and the second audio parameter may include the second amplitude. The control apparatus may further include:
an adjustment module, configured to adjust the second amplitude according to the first amplitude, so that the second amplitude is less than or equal to the first amplitude.

In this case, the adjustment module can cause the phase of the first sound waves to be opposite to that of the second sound waves and the amplitudes to be equal, and the second sound waves can cancel out more of the first sound waves. In this manner, the first sound waves can be undoubtedly canceled out to a relatively high degree, which further alleviates vibration of the housing <NUM>, and causes the use experience of the user to be better. Alternatively, the adjustment module can cause the second amplitude to be less than the first amplitude, so that the second sound waves can not only slow down vibration of the housing <NUM>, but also avoid excessive sound leakage of the electronic device.

In an optional embodiment, the housing <NUM> is provided with the second sound guide hole <NUM>, where the second sound guide hole <NUM> is in communication with outside of the electronic device. The second sound generating module <NUM> is distributed opposite to the second sound guide hole <NUM>, the sound insulation portion is movably disposed at the second sound guide hole <NUM>, and the sound insulation portion is switchable between the first state and the second state. In a case that the sound insulation portion is in the first state, the sound insulation portion blocks the second sound guide hole <NUM>; or in a case that the sound insulation portion is in the second state, the sound insulation portion avoids the second sound guide hole <NUM>. The first control module may include:.

In a specific working process, when the second sound generating module <NUM> needs to eliminate vibration of the housing <NUM>, the second control unit can control the sound insulation portion to be in the first state, so that the sound waves emitted by the second sound generating module <NUM> cancel out the first sound waves, and the second sound generating module <NUM> can be configured to eliminate vibration of the housing <NUM>, and this arrangement manner can cause the second sound generating module <NUM> to operate better in both the first state and the second state.

Further, the second sound generating module <NUM> may have the third operating state, and in a case that the second sound generating module <NUM> is in the third operating state, the sound waves emitted by the second sound generating module <NUM> can be transmitted to outside of the electronic device through the second sound guide hole <NUM>. The control apparatus may further include:.

<FIG> is a schematic diagram of a hardware structure of an electronic device for implementing the embodiments of this application.

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 the structure of the electronic device shown in <FIG> constitutes no limitation on the electronic device, and the electronic device may include more or fewer components than those shown in the figure, or some components may be combined, or a different component deployment may be used. In the embodiments of this application, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, an in-vehicle terminal, a wearable device, and a pedometer.

The sensor <NUM> is configured to obtain a first audio parameter of a first sound generating module <NUM> in a case that the first sound generating module <NUM> is in a first operating state; and the processor <NUM> controls, according to the first audio parameter, a second sound generating module <NUM> to be in a second operating state, and controls the second sound generating module <NUM> to operate according to a second audio parameter. In a specific working process, when the sensor <NUM> finds that a housing <NUM> of the electronic device vibrates, the processor <NUM> controls the second sound generating module <NUM> to be in the second operating state, so that the second sound generating module <NUM> outputs a second vibration signal to the housing <NUM>, or sound waves emitted by the second sound generating module <NUM> form second sound waves in a first accommodating cavity <NUM>, so that vibration caused by a first vibration signal to the housing <NUM> and vibration caused by the second vibration signal to the housing <NUM> are canceled out by each other, or the second sound waves emitted by the second sound generating module <NUM> cancel out the first sound waves, or vibration caused by the first vibration signal to the housing <NUM> and vibration caused by the second sound waves to the housing <NUM> are canceled out by each other, to prevent the housing <NUM> of the electronic device from vibrating, and prevent the electronic device from generating noise or relatively large vibration due to vibration of the housing <NUM>, thereby preventing a user from directly feeling vibration of the housing <NUM>, improving use experience of the user, and finally resolving a current problem that the housing vibrates when the electronic device outputs audio.

It should be understood that in this embodiment of this application, the radio frequency unit <NUM> may be configured to send and receive a signal during an information receiving and sending process or a call process. Specifically, the radio frequency unit receives downlink data from a base station, and then delivers the downlink data to the processor <NUM> for processing; and in addition, sends uplink data 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 or another device through a wireless communication system.

The electronic device provides wireless broadband Internet access to the user through the network module <NUM>, for example, to help the user to receive and send an email, browse a webpage, access stream media, and the like.

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 the audio signal as sound. Moreover, the audio output unit <NUM> may further provide an audio output (such as call signal receiving sound or message receiving sound) related to a specific function executed by the electronic device <NUM>. The audio output unit <NUM> includes a loudspeaker, a buzzer, a receiver, and the like.

The input unit <NUM> is configured to receive an audio signal or a 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> performs processing on image data of a static picture or a video that is obtained by an image acquisition apparatus (for example, a camera) in a video acquisition mode or an image acquisition mode. A processed image frame may be displayed on the display unit <NUM>. The image frame processed by the GPU <NUM> may be stored in the memory <NUM> (or another storage medium) or transmitted through the radio frequency unit <NUM> or the network module <NUM>. The microphone <NUM> may receive a sound and can process such a sound as audio data. The processed audio data may be converted, in a phone call mode, into a format that may be sent to a mobile communication base station through the radio frequency unit <NUM> for output.

The electronic device <NUM> further includes at least one sensor <NUM> such as an optical sensor, a motion sensor, and another sensor. Specifically, the optical sensor includes an ambient light sensor and a proximity sensor, where the ambient light sensor may adjust luminance of the display panel <NUM> according to brightness of the ambient light, and the proximity sensor may switch off the display panel <NUM> and/or backlight when the electronic device <NUM> is moved to the ear. As one type of motion sensor, an acceleration sensor may detect magnitude of accelerations in various directions (generally on three axes), may detect magnitude and a direction of gravity when static, and may be configured to recognize a posture of the electronic device (such as horizontal and vertical screen switching, a related game, and magnetometer posture calibration), a function related to vibration recognition (such as a pedometer and a knock), and 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, and details are not described herein again.

The display unit <NUM> may include a display panel <NUM>.

The user input unit <NUM> may be configured to receive inputted digital or character information, and generate a key signal input related to user settings and function control of the electronic device <NUM>. 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 of a user on or near the touch panel (such as an operation of the user on or near the touch panel <NUM> by using any suitable object or attachment, such as a finger or a touch pen). The touch panel <NUM> may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch orientation 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 a contact coordinate, then transmits the contact coordinate to the processor <NUM>, and receives and executes a command transmitted by the processor <NUM>. In addition, the touch panel <NUM> may be implemented by using various types, such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type. In addition to the touch panel <NUM>, the user input unit <NUM> may further include the another input device <NUM>. Specifically, the another input device <NUM> may include, but not limited to, a physical keyboard, a functional key (such as a volume control key or a switch key), a track ball, a mouse, and a joystick, which are not described herein in detail.

Further, the touch panel <NUM> may cover the display panel <NUM>. After detecting a touch operation on or near the touch panel, the touch panel <NUM> transfers the touch operation to the processor <NUM>, to determine a type of a touch event. Then, the processor <NUM> provides a corresponding visual output on the display panel <NUM> according to the type of the touch event. Although, in <FIG>, the touch panel <NUM> and the display panel <NUM> are used as two separate parts to implement input and output functions of the electronic device, 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, which is not specifically limited herein.

The interface unit <NUM> is an interface for 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 a battery charger) port, a wired or wireless data port, a storage card port, a port configured to connect an apparatus having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit <NUM> may be configured to receive an input (such as data information or electric 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 (for example, a sound playback function and an image display function), and the like. The data storage area may store data (for example, audio data and a phone book) and the like created according to use of the electronic device. In addition, the memory <NUM> may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory, or another volatile solid-state storage device.

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

The electronic device <NUM> may further include a power supply <NUM> (such as a battery) for supplying power to the components. The power supply <NUM> may be logically connected to the processor <NUM> by using a power management system, thereby implementing functions such as charging, discharging, and power consumption management by using the power management system.

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

Optionally, the embodiments of this application further disclose a terminal device, including a processor <NUM>, a memory <NUM>, and a program or an instruction stored in the memory <NUM> and executable on the processor <NUM>. When executed by the processor <NUM>, the program or the instruction implements processes of any one of the foregoing method embodiments, and can achieve the same technical effects. To avoid repetition, details are not described herein again.

The electronic device disclosed in the embodiments of this application may be a smart phone, a tablet computer, an e-book reader, a wearable device (such as a smart watch), an electronic game machine, and the like, and the embodiments of this application do not limit a specific type of the electronic device.

The embodiments of this application further disclose a readable storage medium, storing a program or an instruction. When executed by the processor, the program or the instruction implements processes of any one of the foregoing method embodiments, and can achieve the same technical effects. To avoid repetition, details are not described herein again. The readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disc.

The embodiments of this application further disclose an apparatus, configured to perform the control method according to the foregoing embodiments.

The embodiments of this application further disclose a chip, including a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the control method according to the foregoing embodiments.

The embodiments of this application further disclose a computer program product, stored in a non-volatile storage medium. The program product performs steps of the control method according to any one of the foregoing embodiments when executed by at least one processor.

The embodiments of this application further disclose a control method, including:.

It should be noted that, the terms "include", "comprise", or any other variation thereof in this specification is intended to cover a non-exclusive inclusion, which specifies the presence of stated processes, methods, objects, or apparatuses, but do not preclude the presence or addition of one or more other processes, methods, objects, or apparatuses. Without more limitations, elements defined by the sentence "comprising one" does not exclude that there are still other same elements in the processes, methods, objects, or apparatuses. Furthermore, it should be noted that a scope of the methods and apparatuses in the implementations of this application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. For example, the methods described may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, features described with reference to some examples may be combined in other examples.

Through the descriptions of the foregoing implementations, a person skilled in the art may clearly understand that the method according to the foregoing embodiments may be implemented by means of software and a necessary general hardware platform, and certainly, may alternatively be implemented by hardware, but in many cases, the former manner is a better implementation. Based on such an understanding, the technical solutions in this application essentially or the part contributing to the related art may be implemented in the form of a software product. The computer software product is stored in a storage medium (for example, 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, a network device, or the like) to perform the method described in the embodiments of this application.

Claim 1:
An electronic device, comprising:
a housing (<NUM>), having an accommodating space, wherein the accommodating space comprises a first accommodating cavity (<NUM>), and an inner wall of the housing (<NUM>) forms at least a portion of a cavity wall of the first accommodating cavity (<NUM>);
a first sound generating module (<NUM>), disposed in the first accommodating cavity (<NUM>);
a second sound generating module (<NUM>), disposed in the accommodating space;
characterized in that,
in a case that both the first sound generating module (<NUM>) and the second sound generating module (<NUM>) are in contact with the cavity wall, when the first sound generating module (<NUM>) is in a first operating state, the second sound generating module (<NUM>) is in a second operating state, the first sound generating module (<NUM>) outputs a first vibration signal to the housing (<NUM>), and the second sound generating module (<NUM>) outputs a second vibration signal to the housing (<NUM>), wherein a phase of the first vibration signal is opposite to a phase of the second vibration signal;
or
in a case that the first sound generating module (<NUM>) is in contact with the cavity wall and the second sound generating module (<NUM>) is spaced from the cavity wall, when the first sound generating module (<NUM>) is in a first operating state, the second sound generating module (<NUM>) is in a second operating state, the first sound generating module (<NUM>) outputs a first vibration signal to the housing (<NUM>), and sound waves emitted by the second sound generating module (<NUM>) form second sound waves in the first accommodating cavity (<NUM>); wherein the phase of the first vibration signal is opposite to a phase of the second sound waves.