Control method of electronic equipment and related device
By monitoring the operating status of the sound generating component and the shooting component in the smart terminal device, and adjusting the amplitude of the audio signal output by the sound generating component, the problem of blurring the camera video when the speaker plays audio is solved, and the imaging effect is improved.
Patent Information
- Application Number
- CN202411673475.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-02-25
AI Technical Summary
In smart terminal devices, when the speaker plays audio, it causes the motor device inside the camera to resonate, causing the video recorded by the camera to become blurred and affect the imaging effect.
By monitoring the operating status of the sound generating component and the shooting component, when the sound generating component outputs the first audio signal, it controls it to output the second audio signal so that the amplitude of the second audio signal in the resonance frequency band of the shooting component is smaller than the first audio signal, thereby reducing the impact on the shooting component.
The camera motor device resonance caused by the sound-generating component playing audio signals is effectively avoided, and the imaging effect of the shooting component is improved.
Smart Images

Figure CN119520995A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a control method and related devices of electronic equipment. Background Art
[0002] With the rapid development of mobile communication technology, smart terminals have become an indispensable communication and entertainment tool for humans. Users have higher and higher requirements for sound quality, and the maximum operating amplitude and unit size of speakers are getting higher and higher.
[0003] In the related art, the camera decoration of the electronic device is used to accommodate the camera and the speaker. Although the camera is not inside the speaker cavity, due to the connection between the camera and the motherboard, when the speaker plays music, the motor device inside the camera will resonate, causing the video recorded by the camera to become blurred, affecting the imaging effect of the camera. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a control method and related devices for an electronic device, so as to avoid the resonance of the motor device inside the camera caused by the sound-emitting component playing the audio signal, causing the video recorded by the camera to become blurred, thereby improving the imaging effect of the shooting component.
[0005] In a first aspect, an embodiment of the present application provides a control method for an electronic device, wherein the electronic device includes a sound-emitting component and a shooting component, and the control method for the electronic device includes: obtaining the operating status of the sound-emitting component and the shooting component; when the sound-emitting component outputs a first audio signal and the shooting component is running, controlling the sound-emitting component to output a second audio signal, wherein a first amplitude of the first audio signal is greater than a second amplitude of the second audio signal, and both the first amplitude and the second amplitude are amplitudes within a target frequency band, and the target frequency band is a frequency band where the resonant frequency of the shooting component is located.
[0006] In a second aspect, an embodiment of the present application provides a control device of an electronic device, the electronic device comprising a sound-emitting component and a shooting component, the control device of the electronic device comprising: an acquisition module, used to acquire the operating status of the sound-emitting component and the shooting component; a control module, used to control the sound-emitting component to output a second audio signal when the sound-emitting component outputs a first audio signal and the shooting component is running, wherein a first amplitude of the first audio signal is greater than a second amplitude of the second audio signal, and both the first amplitude and the second amplitude are amplitudes within a target frequency band, and the target frequency band is a frequency band where the resonant frequency of the shooting component is located.
[0007] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein the memory stores programs or instructions that can be executed on the processor, and when the programs or instructions are executed by the processor, the steps of the method of the first aspect are implemented.
[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.
[0009] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method of the first aspect.
[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method of the first aspect.
[0011] In an embodiment of the present application, the electronic device is capable of monitoring the operating status of the sound-emitting component and the shooting component. When the sound-emitting component outputs a first audio signal and the shooting component is running at the same time, the amplitude of the second audio signal output by the sound-emitting component in a target frequency band that may cause resonance of the shooting component can be smaller than the amplitude of the first audio signal in the target frequency band. This can reduce the impact of the sound-emitting component outputting an audio signal on the shooting of the shooting component, avoid the sound-emitting component playing an audio signal and causing the motor device inside the camera to resonate, causing the video recorded by the camera to become blurred, and improve the imaging effect of the shooting component. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 One of the flowcharts of the control method of the electronic device provided in some embodiments of the present application is shown;
[0013] Figure 2 One of the structural schematic diagrams of an electronic device provided in some embodiments of the present application is shown;
[0014] Figure 3 A second structural schematic diagram of an electronic device provided in some embodiments of the present application is shown;
[0015] Figure 4 A second flow chart of a control method for an electronic device provided in some embodiments of the present application is shown;
[0016] Figure 5 A third flowchart of a control method for an electronic device provided in some embodiments of the present application is shown;
[0017] Figure 6 A schematic block diagram showing a control device of an electronic device provided in some embodiments of the present application is shown;
[0018] Figure 7 A structural block diagram of an electronic device according to an embodiment of the present application is shown;
[0019] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application is shown.
[0020] Reference numerals:
[0021] 200 electronic device, 210 sound-emitting component, 212 first speaker, 214 second speaker, 220 shooting component, 230 main board, 231 first circuit board, 232 second circuit board, 240 main board bracket, 250 camera decoration, 260 buffer foam. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0024] The following is combined with Figures 1 to 8 , the control method and related devices of the electronic device provided in the embodiment of the present application are described in detail through specific embodiments and their application scenarios.
[0025] In some embodiments of the present application, a control method of an electronic device is provided, wherein the electronic device includes a sound-generating component and a shooting component. Figure 1 One of the flow charts of the control method of the electronic device provided in some embodiments of the present application is shown, such as Figure 1 As shown, a control method of an electronic device includes:
[0026] Step 102, obtaining the operating status of the sound generating component and the shooting component;
[0027] In an embodiment of the present application, the electronic device includes a sound-emitting component and a shooting component. The sound-emitting component may include multiple speakers. At least some of the speakers in the sound-emitting component are close to the shooting component. When the sound-emitting component plays audio, it may affect the shooting of the shooting component.
[0028] Figure 2 A schematic diagram of the structure of an electronic device provided in some embodiments of the present application is shown. Figure 2 As shown, the electronic device 200 is a mobile phone, and a sound-emitting component 210 and a shooting component 220 are arranged under the camera decoration 250 of the mobile phone. The shooting component 220 is stacked between the main board 230 and the main board bracket 240, and a buffer foam 260 is attached between the shooting component 220 and the main board bracket 240.
[0029] In an embodiment of the present application, the electronic device can continuously obtain the operating status of the shooting component and the operating status of the sound-emitting component, wherein the operating status of the shooting component includes the shooting component being in a shooting state and the shooting component being in a shutdown state, and the operating status of the sound-emitting component includes the sound-emitting component playing audio and the sound-emitting component stopping playing audio.
[0030] Step 104, when the sound-emitting component outputs a first audio signal and the shooting component is running, control the sound-emitting component to output a second audio signal, wherein a first amplitude of the first audio signal is greater than a second amplitude of the second audio signal, and both the first amplitude and the second amplitude are amplitudes within a target frequency band, and the target frequency band is a frequency band where the resonance frequency of the shooting component is located.
[0031] In an embodiment of the present application, the first audio signal is an audio signal played when the sound-emitting component is in normal operating state, that is, when the sound-emitting component is playing the first audio signal, the shooting component is also in the shooting state, then the sound-emitting component is controlled to output the second audio signal, and the second audio signal is an audio signal obtained by reducing the amplitude of the first audio signal in the target frequency band, the first amplitude is the amplitude of the first audio signal in the target frequency band, the second amplitude is the amplitude of the second audio signal in the target frequency band, and the first amplitude is greater than the second amplitude.
[0032] Specifically, when the sound-emitting component plays the first audio signal, since the frequency of part of the audio signal of the first audio signal is within the target frequency band, and the audio signal within the target frequency band will cause the shooting component to resonate, resulting in blurred images taken by the shooting component. Therefore, reducing the amplitude of the first audio signal in the target frequency band and controlling the sound-emitting component to output a second audio signal with the amplitude reduced in the target frequency band can avoid the problem of blurred images caused by the resonance of the shooting component when the sound-emitting component and the shooting component are running at the same time.
[0033] It should be noted that the shooting component includes a motor device, and the resonance frequency of the shooting component is the resonance frequency of the motor device, that is, the target frequency band is the frequency band range where the resonance frequency of the motor device is located.
[0034] In an embodiment of the present application, the electronic device is capable of monitoring the operating status of the sound-emitting component and the shooting component. When the sound-emitting component outputs a first audio signal and the shooting component is running at the same time, the amplitude of the second audio signal output by the sound-emitting component in a target frequency band that may cause resonance of the shooting component can be smaller than the amplitude of the first audio signal in the target frequency band. This can reduce the impact of the sound-emitting component outputting an audio signal on the shooting of the shooting component, avoid the sound-emitting component playing an audio signal and causing the motor device inside the camera to resonate, causing the video recorded by the camera to become blurred, and improve the imaging effect of the shooting component.
[0035] In some embodiments of the present application, controlling the sound-emitting component to output the second audio signal includes:
[0036] The sound generating component is controlled to operate according to a target equalizer gain, wherein the target equalizer gain is determined according to a target frequency band and a second amplitude.
[0037] In an embodiment of the present application, the target equalizer gain is the EQ (Equalizer) gain of the audio signal of the sound effect algorithm node added to the electronic device. By adjusting the equalizer gain of the sound component, a driving signal is output according to the target equalizer gain to drive the sound component to output a second audio signal.
[0038] Exemplarily, the target equalizer gain may be a gain parameter calculated in real time according to the target frequency band and the second amplitude.
[0039] Exemplarily, a correspondence library of equalizer gain, second amplitude and target frequency band is burned into the electronic device. When the electronic device needs to adjust the target equalizer gain, the target equalizer gain in the relationship library can be directly called according to the target frequency band and the second amplitude.
[0040] Specifically, when the shooting component and the sound-generating component are running at the same time, an EQ gain is added to the first audio signal of the front node of the sound effect algorithm to reduce the amplitude of the first audio signal corresponding to the shooting component in the target frequency band, where the inherent resonance frequency of the shooting component is located, so that the second audio signal output by the shooting component reduces the audio signal in the target frequency band, thereby reducing the impact of the output second audio signal on the shooting component. Exemplarily, the sound-generating component includes an upper speaker and a lower speaker, wherein the upper speaker and the shooting component are installed together in the decorative part of the electronic device, and the lower speaker is installed near the bottom of the middle frame of the electronic device. The lower speaker is far away from the upper speaker, and the output of the first audio signal by the lower speaker will not affect the shooting component. Then, only the EQ gain can be added to the first audio signal output by the upper speaker, so that the upper speaker outputs the second audio signal, and the lower speaker keeps outputting the first audio signal, which reduces the impact of the operation of the sound-generating component on the shooting component, and at the same time can ensure the playback effect of the audio played by the electronic device.
[0041] In an embodiment of the present application, a target equalizer gain is added to the node of the audio data stream for the first audio signal output by the sound-emitting component, so that the amplitude of the second audio signal output by the sound-emitting component within the target frequency band is reduced, and the audio signal within the target frequency band output by the sound-emitting component is reduced, thereby reducing the problem of image blur caused by the resonance of the shooting component caused by the simultaneous operation of the shooting component and the sound-emitting component during the audio playback of the sound-emitting component, and improving the shooting effect of the shooting component when the sound-emitting component and the shooting component are running at the same time.
[0042] In some embodiments of the present application, optionally, the sound-emitting component includes a first speaker and a second speaker, the distance between the first speaker and the shooting component is smaller than the distance between the second speaker and the shooting component, and controlling the sound-emitting component to output the second audio signal includes:
[0043] The operating parameters of the first speaker are adjusted, and the second speaker is controlled to keep outputting the first audio signal, so that the sound-emitting component outputs the second audio signal.
[0044] In the embodiment of the present application, the sound-emitting component includes a first speaker that is closer to the shooting component, and a second speaker that is farther from the shooting component. Since the second speaker is farther from the shooting component, even if the second speaker outputs the first audio signal including the target frequency band, it will not affect the shooting of the shooting component. Therefore, in the process of controlling the sound-emitting component to switch from outputting the first audio signal to outputting the second audio signal, only the operating parameters of the first speaker in the sound-emitting component can be adjusted, and the second speaker can be controlled to keep outputting the first audio signal, so as to ensure the audio playback effect of the sound-emitting component under the premise of reducing interference with the operation of the shooting component.
[0045] like Figure 2 As shown, exemplarily, the electronic device 200 includes an upper channel and a lower channel, the first speaker 212 is an upper speaker corresponding to the upper channel, and the second speaker 214 is a lower speaker corresponding to the lower channel.
[0046] Specifically, the sound-emitting component includes a first speaker and a second speaker which are at different distances from the shooting component. The first speaker, the second speaker and the shooting component are all arranged on the same circuit board. When the electronic device operates in a stereo operation state of the dual speakers, only the operating parameters of the first speaker which is closer to the shooting component can be adjusted, and the output of the original first audio signal of the second speaker can be maintained, so that the overall output of the sound-emitting component is a second audio signal with a smaller amplitude than the first audio signal in the target frequency band.
[0047] Exemplarily, the first spacing is the distance between the first speaker and the shooting component, the second spacing is the distance between the second speaker and the shooting component, the first spacing has a value range of 1 mm to 1 cm, and the second spacing has a value range of 5 cm to 15 cm.
[0048] In the embodiment of the present application, the sound-emitting component includes a first speaker and a second speaker, and when the first speaker, the second speaker and the shooting component are operated simultaneously, only the operating parameters of the first speaker which is closer to the shooting component can be adjusted, and the second speaker keeps outputting the original first audio signal, thereby avoiding the audio playback of the first speaker in the sound-emitting component affecting the shooting component and ensuring the audio playback effect of the sound-emitting component.
[0049] In some embodiments of the present application, the sound-emitting component includes a first speaker and a second speaker, the first speaker and the shooting component are arranged on a first circuit board, and the second speaker is arranged on a second circuit board, and controlling the sound-emitting component to output a second audio signal includes: adjusting the operating parameters of the first speaker, and controlling the second speaker to keep outputting the first audio signal so that the sound-emitting component outputs the second audio signal.
[0050] In an embodiment of the present application, the sound-emitting component includes a first speaker arranged on the same board as the shooting component, and a second speaker arranged on a different board from the shooting component. Since the first speaker and the shooting component are arranged on the first circuit board together, when the first speaker outputs a first audio signal including a target frequency band, the vibration generated by the first audio signal can be transmitted to the shooting component via the first circuit board, thereby affecting the shooting of the shooting component. The second speaker is arranged on the second circuit board, and even if the second speaker outputs a first audio signal including a target frequency band, it is difficult to transmit it to the shooting component located on the first circuit board, that is, the shooting effect on the shooting component is small. Therefore, in the process of controlling the sound-emitting component to switch from outputting the first audio signal to outputting the second audio signal, only the operating parameters of the first speaker arranged on the same board as the shooting component in the sound-emitting component can be adjusted, and the second speaker arranged on a different board from the shooting component can be controlled to keep outputting the first audio signal, which can ensure the audio playback effect of the sound-emitting component under the premise of reducing interference with the operation of the shooting component.
[0051] Figure 3 FIG. 2 shows a second structural diagram of an electronic device provided in some embodiments of the present application, such as Figure 3 As shown, exemplarily, the first speaker 212 is disposed together with the photographing assembly 220 on the first circuit board 231 , and the second speaker 214 is disposed separately on the second circuit board 232 .
[0052] Exemplarily, the first circuit board is a main circuit board of the electronic device, and the second circuit board is a sub-circuit board of the electronic device.
[0053] Specifically, the sound-emitting component includes a first speaker arranged on the same board as the shooting component, and a second speaker arranged on a different board from the shooting component. When the electronic device is operating in a dual-speaker operating state, only the operating parameters of the first speaker arranged on the same board as the shooting component can be adjusted, and the output of the original first audio signal of the second speaker can be maintained, so that the overall output of the sound-emitting component is a second audio signal with a smaller amplitude than the first audio signal in the target frequency band.
[0054] It should be noted that since the shooting component and the second speaker are not arranged on the same board, and the first speaker and the shooting component are arranged on the same board, even if the distance between the second speaker and the shooting component is similar to the distance between the first speaker and the shooting component, the operating parameters of the first speaker arranged on the same board are adjusted preferentially to reduce the impact of the operation of the sound-emitting component on the shooting component.
[0055] In the embodiment of the present application, when the sound-emitting component includes a first speaker and a second speaker, and the first speaker, the second speaker and the shooting component are running at the same time, only the operating parameters of the first speaker set on the same board as the shooting component can be adjusted, and the second speaker keeps outputting the original first audio signal, thereby avoiding the first speaker in the sound-emitting component playing audio affecting the shooting component and ensuring the audio playback effect of the sound-emitting component. In some embodiments of the present application, adjusting the operating parameters of the first speaker includes:
[0056] The first speaker is controlled to stop outputting the first audio signal; or the amplitude of the audio signal output by the first speaker in the target frequency band is reduced.
[0057] In an embodiment of the present application, the sound-emitting component includes a first speaker and a second speaker, and when the first speaker, the second speaker and the shooting component are running at the same time, the first speaker is controlled to stop outputting the first audio signal, and the second speaker is kept to continue to output the first audio signal, thereby avoiding the first speaker, which is closer to the shooting component, from affecting the shooting component when playing audio, and the second speaker, which is farther away from the shooting component, keeps outputting the first audio signal, thereby ensuring the audio playback effect of the sound-emitting component.
[0058] Exemplarily, the first speaker is an upper speaker in an electronic device. By turning off the output of the power amplifier corresponding to the first speaker and retaining the output of the power amplifier corresponding to the second speaker, the first speaker stops outputting the first audio signal and the second speaker keeps outputting the first audio signal.
[0059] In an embodiment of the present application, the sound-emitting component includes a first speaker and a second speaker, and when the first speaker, the second speaker and the shooting component are operated at the same time, the amplitude of the audio signal output by the first speaker in a target frequency band is reduced, and the second speaker continues to output the first audio signal, so that the amplitude of the audio signal output by the first speaker in the target frequency band is lower, thereby avoiding resonance of the shooting component due to the influence of the audio signal output by the first speaker, improving the shooting effect of the shooting component, and keeping the second speaker far away from the shooting component to keep outputting the first audio signal to ensure the audio playback effect of the sound-emitting component.
[0060] Exemplarily, the first speaker is an upper speaker in an electronic device, and an EQ gain is added to the node of the audio data stream of the first speaker so that the first speaker outputs a third audio signal and the second speaker keeps outputting the first audio signal, wherein the amplitude of the third audio signal within the target frequency band is smaller than the amplitude of the second audio signal within the target frequency band.
[0061] In an embodiment of the present application, when the sound-emitting component includes a first speaker and a second speaker, controlling the first speaker to stop outputting the first audio signal, or reducing the amplitude of the audio signal output by the first speaker in the target frequency band, can effectively reduce the impact of the operation of the first speaker closer to the shooting component on the image captured by the shooting component, and maintaining the output of the second speaker farther away from the shooting component can ensure the audio playback effect of the sound-emitting component.
[0062] In some embodiments of the present application, after controlling the sound-emitting component to output a second audio signal when the sound-emitting component outputs a first audio signal and the shooting component is running, the control method of the electronic device further includes: when the shooting component stops running, controlling the sound-emitting component to resume outputting the first audio signal.
[0063] In an embodiment of the present application, while the shooting component and the sound-emitting component are running simultaneously, the electronic device continuously monitors the operating status of the shooting component and the sound-emitting component, and after the shooting component stops running, controls the sound-emitting component to resume outputting the first audio signal, so that the electronic device can resume audio output in a timely manner.
[0064] Figure 4 FIG. 2 shows a flow chart of a control method of an electronic device provided in some embodiments of the present application. Figure 4 As shown, a control method of an electronic device includes:
[0065] Step 402, determining whether the sound generating component and the camera component are operating simultaneously, if the determination result is yes, executing step 404, if the determination result is no, executing step 406;
[0066] Step 404, adding a target equalizer gain to the node of the audio data stream, and returning to step 402;
[0067] Step 406: the sound-generating component maintains the current playing state and returns to execute step 402.
[0068] In an embodiment of the present application, the operating state of the shooting component is associated with the operating state of the sound-emitting component. When the shooting component and the sound-emitting component are operating at the same time, a real-time detection mechanism for the operating states of the sound-emitting component and the shooting component is added to the software logic by adjusting the software logic, so as to detect in real time whether the sound-emitting component and the shooting component are working at the same time. When the sound-emitting component and the shooting component are working at the same time, an EQ gain is added to the node of the audio data stream. Specifically, an EQ gain is added to the audio signal of the node before the sound effect algorithm to reduce the amplitude of the audio signal near the inherent resonance frequency of the shooting component (target frequency band), so that the sound-emitting component cannot completely output the audio signal of the target frequency band, thereby avoiding the problem of image blur caused by the resonance of the shooting component caused by the simultaneous operation of the shooting component and the sound-emitting component during the audio output process of the sound-emitting component. When the electronic device detects that the shooting component stops running, the output of the sound-emitting component automatically returns to its original state.
[0069] Figure 5 FIG. 3 shows a flow chart of a control method of an electronic device provided in some embodiments of the present application. Figure 5 As shown, a control method of an electronic device includes:
[0070] Step 502, determining whether the sound generating component and the camera component are operating simultaneously, if the determination result is yes, executing step 504, if the determination result is no, executing step 506;
[0071] Step 504, turn off the power amplifier of the upper speaker, and keep the power amplifier of the lower speaker running, and return to step 502;
[0072] Step 506: the upper speaker and the lower speaker maintain the current playing state, and the process returns to step 502.
[0073] In the embodiment of the present application, the sound-emitting component includes an upper speaker and a lower speaker, the upper speaker is a first speaker that is closer to the shooting component, and the lower speaker is a second speaker that is farther from the shooting component. The operating state of the shooting component is associated with the operating state of the sound-emitting component. When the shooting component and the sound-emitting component are running at the same time, by adjusting the software logic, a real-time detection mechanism for the operating states of the sound-emitting component and the shooting component is added to the software logic to detect in real time whether the sound-emitting component and the shooting component are working at the same time; when the sound-emitting component and the shooting component are working at the same time, the output of the power amplifier of the upper speaker is directly turned off, and the output of the power amplifier of the lower speaker is retained, thereby avoiding the problem of image blur caused by the resonance of the shooting component caused by the simultaneous operation of the shooting component and the sound-emitting component during the audio output process of the sound-emitting component. When the electronic device detects that the shooting component stops running, the output of the sound-emitting component automatically returns to its original state.
[0074] The electronic device control method provided in the embodiment of the present application can be executed by a control device of the electronic device. The electronic device control method provided in the embodiment of the present application is described by taking the electronic device control device executing the electronic device control method as an example.
[0075] In some embodiments of the present application, a control device for an electronic device is provided, which is applied to the electronic device. Figure 6 A schematic block diagram of a control device of an electronic device provided in some embodiments of the present application is shown. Figure 6 As shown, the control device 600 of the electronic device includes:
[0076] The acquisition module 602 is used to acquire the operating status of the sound generating component and the shooting component;
[0077] The control module 604 is used to control the sound-emitting component to output a second audio signal when the sound-emitting component outputs a first audio signal and the shooting component is running, wherein a first amplitude of the first audio signal is greater than a second amplitude of the second audio signal, and both the first amplitude and the second amplitude are amplitudes within a target frequency band, and the target frequency band is a frequency band where the resonance frequency of the shooting component is located.
[0078] In an embodiment of the present application, the electronic device is capable of monitoring the operating status of the sound-emitting component and the shooting component. When the sound-emitting component outputs a first audio signal and the shooting component is running at the same time, the amplitude of the second audio signal output by the sound-emitting component in a target frequency band that may cause resonance of the shooting component can be smaller than the amplitude of the first audio signal in the target frequency band. This can reduce the impact of the sound-emitting component outputting an audio signal on the shooting of the shooting component, avoid the sound-emitting component playing an audio signal and causing the motor device inside the camera to resonate, causing the video recorded by the camera to become blurred, and improve the imaging effect of the shooting component.
[0079] In some embodiments of the present application, the control module 604 is used to control the operation of the sound-generating component according to a target equalizer gain, wherein the target equalizer gain is determined according to a target frequency band and a second amplitude.
[0080] In an embodiment of the present application, a target equalizer gain is added to the node of the audio data stream for the first audio signal output by the sound-emitting component, so that the amplitude of the second audio signal output by the sound-emitting component within the target frequency band is reduced, and the audio signal within the target frequency band output by the sound-emitting component is reduced, thereby reducing the problem of image blur caused by the resonance of the shooting component caused by the simultaneous operation of the shooting component and the sound-emitting component during the audio playback of the sound-emitting component, and improving the shooting effect of the shooting component when the sound-emitting component and the shooting component are running at the same time.
[0081] In some embodiments of the present application, the sound-emitting component includes a first speaker and a second speaker, the distance between the first speaker and the shooting component is smaller than the distance between the second speaker and the shooting component, and the control device 600 of the electronic device further includes:
[0082] An adjustment module, used for adjusting operating parameters of the first speaker;
[0083] The control module 604 is used to control the second speaker to keep outputting the first audio signal so that the sound-emitting component outputs the second audio signal.
[0084] In the embodiment of the present application, the sound-emitting component includes a first speaker and a second speaker, and when the first speaker, the second speaker and the shooting component are operated simultaneously, only the operating parameters of the first speaker which is closer to the shooting component can be adjusted, and the second speaker keeps outputting the original first audio signal, thereby avoiding the audio playback of the first speaker in the sound-emitting component affecting the shooting component and ensuring the audio playback effect of the sound-emitting component.
[0085] In some embodiments of the present application, the sound-generating component includes a first speaker and a second speaker, the first speaker and the shooting component are arranged on a first circuit board, and the second speaker is arranged on a second circuit board, and controlling the sound-generating component to output a second audio signal includes:
[0086] An adjustment module, used for adjusting operating parameters of the first speaker;
[0087] The control module 604 is used to control the second speaker to keep outputting the first audio signal so that the sound-emitting component outputs the second audio signal.
[0088] In the embodiment of the present application, the sound-emitting component includes a first speaker and a second speaker, and when the first speaker, the second speaker and the shooting component are operating simultaneously, only the operating parameters of the first speaker set on the same board as the shooting component can be adjusted, and the second speaker continues to output the original first audio signal, thereby avoiding the audio playback of the first speaker in the sound-emitting component affecting the shooting component and ensuring the audio playback effect of the sound-emitting component.
[0089] In some embodiments of the present application, the control module 604 is used to control the first speaker to stop outputting the first audio signal;
[0090] The adjustment module is used to reduce the amplitude of the audio signal output by the first speaker in the target frequency band.
[0091] In an embodiment of the present application, when the sound-emitting component includes a first speaker and a second speaker, controlling the first speaker to stop outputting the first audio signal, or reducing the amplitude of the audio signal output by the first speaker in the target frequency band, can effectively reduce the impact of the operation of the first speaker closer to the shooting component on the image captured by the shooting component, and maintaining the output of the second speaker farther away from the shooting component can ensure the audio playback effect of the sound-emitting component.
[0092] In some embodiments of the present application, the control module 604 is used to control the sound-generating component to resume outputting the first audio signal when the shooting component stops running.
[0093] In an embodiment of the present application, while the shooting component and the sound-emitting component are running simultaneously, the electronic device continuously monitors the operating status of the shooting component and the sound-emitting component, and after the shooting component stops running, controls the sound-emitting component to resume outputting the first audio signal, so that the electronic device can resume audio output in a timely manner.
[0094] The control device of the electronic device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0095] The control device of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0096] The control device of the electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.
[0097] Optionally, an embodiment of the present application further provides an electronic device, which includes a control device for an electronic device as in any of the above embodiments, and thus has all the beneficial effects of the control method for an electronic device in any of the embodiments, which will not be elaborated herein.
[0098] Optionally, an embodiment of the present application further provides an electronic device, Figure 7 A structural block diagram of an electronic device according to an embodiment of the present application is shown. Figure 7 As shown, the electronic device 700 includes a processor 702, a memory 704, and a program or instruction stored in the memory 704 and executable on the processor 702. When the program or instruction is executed by the processor 702, each process of the control method embodiment of the above-mentioned electronic device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0099] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0100] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0101] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810 and other components.
[0102] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0103] The processor 810 is used to obtain the operating status of the sound generating component and the shooting component;
[0104] The processor 810 is configured to control the sound-generating component to output a second audio signal when the sound-generating component outputs a first audio signal and the camera component is running;
[0105] The first amplitude of the first audio signal is greater than the second amplitude of the second audio signal, and both the first amplitude and the second amplitude are amplitudes within a target frequency band, where the target frequency band is a frequency band where the resonance frequency of the shooting component is located.
[0106] In an embodiment of the present application, the electronic device is capable of monitoring the operating status of the sound-emitting component and the shooting component. When the sound-emitting component outputs a first audio signal and the shooting component is running at the same time, the amplitude of the second audio signal output by the sound-emitting component in a target frequency band that may cause resonance of the shooting component can be smaller than the amplitude of the first audio signal in the target frequency band. This can reduce the impact of the sound-emitting component outputting an audio signal on the shooting of the shooting component, avoid the sound-emitting component playing an audio signal and causing the motor device inside the camera to resonate, causing the video recorded by the camera to become blurred, and improve the imaging effect of the shooting component.
[0107] Further, the processor 810 is used to control the operation of the sound-generating component according to a target equalizer gain, wherein the target equalizer gain is determined according to a target frequency band and a second amplitude.
[0108] In an embodiment of the present application, a target equalizer gain is added to the node of the audio data stream for the first audio signal output by the sound-emitting component, so that the amplitude of the second audio signal output by the sound-emitting component within the target frequency band is reduced, and the audio signal within the target frequency band output by the sound-emitting component is reduced, thereby reducing the problem of image blur caused by the resonance of the shooting component caused by the simultaneous operation of the shooting component and the sound-emitting component during the audio playback of the sound-emitting component, and improving the shooting effect of the shooting component when the sound-emitting component and the shooting component are running at the same time.
[0109] Further, the sound-emitting component includes a first speaker and a second speaker, and the distance between the first speaker and the shooting component is smaller than the distance between the second speaker and the shooting component;
[0110] Processor 810, configured to adjust operating parameters of the first speaker;
[0111] The processor 810 is used to control the second speaker to keep outputting the first audio signal so that the sound-emitting component outputs the second audio signal.
[0112] In the embodiment of the present application, the sound-emitting component includes a first speaker and a second speaker, and when the first speaker, the second speaker and the shooting component are operated simultaneously, only the operating parameters of the first speaker which is closer to the shooting component can be adjusted, and the second speaker keeps outputting the original first audio signal, thereby avoiding the audio playback of the first speaker in the sound-emitting component affecting the shooting component and ensuring the audio playback effect of the sound-emitting component.
[0113] Further, the sound-generating component includes a first speaker and a second speaker, the first speaker and the shooting component are arranged on a first circuit board, and the second speaker is arranged on a second circuit board, and controlling the sound-generating component to output a second audio signal includes:
[0114] Processor 810, configured to adjust operating parameters of the first speaker;
[0115] The processor 810 is used to control the second speaker to keep outputting the first audio signal so that the sound-emitting component outputs the second audio signal.
[0116] In the embodiment of the present application, the sound-emitting component includes a first speaker and a second speaker, and when the first speaker, the second speaker and the shooting component are operating simultaneously, only the operating parameters of the first speaker set on the same board as the shooting component can be adjusted, and the second speaker continues to output the original first audio signal, thereby avoiding the audio playback of the first speaker in the sound-emitting component affecting the shooting component and ensuring the audio playback effect of the sound-emitting component.
[0117] Further, the processor 810 is used to control the first speaker to stop outputting the first audio signal;
[0118] The processor 810 is configured to reduce the amplitude of the audio signal output by the first speaker in a target frequency band.
[0119] In an embodiment of the present application, when the sound-emitting component includes a first speaker and a second speaker, controlling the first speaker to stop outputting the first audio signal, or reducing the amplitude of the audio signal output by the first speaker in the target frequency band, can effectively reduce the impact of the operation of the first speaker closer to the shooting component on the image captured by the shooting component, and maintaining the output of the second speaker farther away from the shooting component can ensure the audio playback effect of the sound-emitting component.
[0120] Furthermore, the processor 810 is used to control the sound-generating component to resume outputting the first audio signal when the shooting component stops operating.
[0121] In an embodiment of the present application, while the shooting component and the sound-emitting component are running simultaneously, the electronic device continuously monitors the operating status of the shooting component and the sound-emitting component, and after the shooting component stops running, controls the sound-emitting component to resume outputting the first audio signal, so that the electronic device can resume audio output in a timely manner.
[0122] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or action file obtained by the image capture device (such as a camera) in the action file capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0123] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0124] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.
[0125] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0126] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
[0127] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned electronic device, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0128] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0129] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the control method embodiment of the electronic device as described above, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0130] It should be noted that, in this article, the term "comprises", "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, device, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or device. In the absence of further restrictions, an element defined by the statement "including one..." does not exclude the presence of other identical elements in the process, device, article or device including the element. In addition, it should be noted that the scope of the devices and apparatuses in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described device may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment device can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions for a terminal (which can be a mobile phone, computer, server, or network equipment, etc.) to execute the device of each embodiment of the present application.
[0132] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A control method for an electronic device, characterized in that: The electronic device comprises a sound-generating component and a shooting component, and the control method of the electronic device comprises: Obtaining the operating status of the sound-generating component and the shooting component; When the sound-emitting component outputs a first audio signal and the shooting component is running, the sound-emitting component is controlled to output a second audio signal, wherein a first amplitude of the first audio signal is greater than a second amplitude of the second audio signal, and the first amplitude and the second amplitude are both amplitudes within a target frequency band, and the target frequency band is a frequency band where the resonance frequency of the shooting component is located.
2. The control method of the electronic device according to claim 1, characterized in that: The controlling the sound-emitting component to output a second audio signal comprises: The sound-generating component is controlled to operate according to a target equalizer gain, wherein the target equalizer gain is determined according to the target frequency band and the second amplitude.
3. The control method of the electronic device according to claim 1, characterized in that: The sound-generating component includes a first speaker and a second speaker, the distance between the first speaker and the shooting component is smaller than the distance between the second speaker and the shooting component, and the controlling the sound-generating component to output the second audio signal includes: The operating parameters of the first speaker are adjusted, and the second speaker is controlled to keep outputting the first audio signal, so that the sound-emitting component outputs the second audio signal.
4. The control method of an electronic device according to claim 1, characterized in that: The sound-generating component includes a first speaker and a second speaker, the first speaker and the shooting component are arranged on a first circuit board, and the second speaker is arranged on a second circuit board, and the controlling the sound-generating component to output a second audio signal includes: The operating parameters of the first speaker are adjusted, and the second speaker is controlled to keep outputting the first audio signal, so that the sound-emitting component outputs the second audio signal.
5. The control method of an electronic device according to claim 3 or 4, characterized in that: The adjusting the operating parameters of the first speaker includes: controlling the first speaker to stop outputting the first audio signal; or The amplitude of the audio signal output by the first speaker in the target frequency band is reduced.
6. The control method of an electronic device according to claim 1, characterized in that: In the case where the sound-generating component outputs the first audio signal and the shooting component is running, after controlling the sound-generating component to output the second audio signal, the control method of the electronic device further includes: When the shooting component stops running, the sound generating component is controlled to resume outputting the first audio signal.
7. A control device for an electronic device, characterized in that: The electronic device comprises a sound-generating component and a shooting component, and the control device of the electronic device comprises: An acquisition module, used to acquire the operating status of the sound-generating component and the shooting component; A control module is used to control the sound-emitting component to output a second audio signal when the sound-emitting component outputs a first audio signal and the shooting component is running, wherein a first amplitude of the first audio signal is greater than a second amplitude of the second audio signal, and the first amplitude and the second amplitude are both amplitudes within a target frequency band, and the target frequency band is a frequency band where the resonance frequency of the shooting component is located.
8. The control device for electronic equipment according to claim 7, characterized in that: Also includes: The control module is used to control the operation of the sound-generating component according to a target equalizer gain, wherein the target equalizer gain is determined according to the target frequency band and the second amplitude.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Apparatus for digital moving picture photographing or processing
CN101808195A
Method and device for inhibiting camera dithering of intelligent soundbox with camera
CN109688319A
Camera control method and device, storage medium and terminal
CN115134522A
Method for controlling virtual focus of zoom camera based on Fourier transform
CN117915184A
Cited By
Electronic device control method and related apparatus
WO2026108754A1