Vibration reduction method and device, storage medium, electronic equipment and program product
By controlling the vibration frequency and direction of the speakers and vibrating motors, the resonance problem of laptop speakers when playing audio is solved, and the effect of reducing resonance intensity and improving sound quality is achieved.
Patent Information
- Application Number
- CN202411823471.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-04-08
AI Technical Summary
The speakers of existing laptops are prone to resonance when playing audio, causing noise and vibration, affecting the sound quality and user experience.
By controlling the vibration frequency and direction of the speaker and the vibrating motor, the vibration motor is used to generate vibrations opposite to the speaker vibration to offset or reduce resonance.
It effectively reduces the resonance intensity, improves the sound quality, reduces the vibration sense of the keyboard, and improves the user experience.
Smart Images

Figure CN119781582A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a vibration reduction method, device, storage medium, electronic device and program product. Background Art
[0002] At present, electronic devices such as laptops have become inseparable from our lives, greatly improving people's living standards. Among them, a laptop refers to a portable computer, which is usually equipped with a sound function. The sound function is realized by the speaker embedded in the laptop. A speaker is a transducer that converts electrical signals into sound signals. The electrical energy of the audio generates piezoelectric or electrostatic effects through electromagnetics, causing the speaker cone or diaphragm to vibrate and resonate (resonate) with the surrounding air to produce sound.
[0003] The speakers of existing laptop computers are generally located inside the laptop shell. When the volume of the sound emitted by the speaker is high, the vibration amplitude of the speaker is large, which easily causes resonance between the speaker and the shell. Resonance is generally accompanied by noise, and the resonance has a greater impact on the laptop keyboard. Users can clearly feel the vibration of the keyboard when typing. Therefore, the resonance of the laptop will not only affect the sound quality of the laptop, but also affect the user experience. Summary of the invention
[0004] The embodiments of the present application provide a vibration reduction method, device, storage medium, electronic device and program product, which can reduce resonance in a relatively short time and are easy to implement.
[0005] In a first aspect, an embodiment of the present application provides a vibration reduction method, which is applied to an electronic device, wherein the electronic device includes a speaker and a vibration motor, and the method includes: controlling the speaker to play audio and generate a first vibration, wherein the vibration frequency of the first vibration includes the resonance frequency of the electronic device, and the vibration direction of the first vibration includes the resonance direction of the electronic device; while the speaker is playing audio, controlling the vibration motor to generate a second vibration, wherein the vibration direction of the second vibration is opposite to the resonance direction, the vibration frequency of the second vibration is the same as the resonance frequency, and the vibration intensity of the second vibration is proportional to the vibration intensity of the first vibration.
[0006] In the embodiment of the present application, the vibration frequency of the second vibration of the vibration motor is the same as the resonance frequency of the electronic device, and the vibration direction of the second vibration of the vibration motor is opposite to the resonance direction of the electronic device, that is, the second vibration of the vibration motor can offset or reduce the resonance of the electronic device, thereby achieving the purpose of vibration reduction.
[0007] In a possible implementation of the first aspect above, when the speaker generates a first vibration, the resonance intensity of the electronic device is a first resonance intensity; when the speaker generates a first vibration and the vibration motor generates a second vibration, the resonance intensity of the electronic device is a second resonance intensity, wherein the second resonance intensity is less than the first resonance intensity.
[0008] In a possible implementation of the first aspect above, controlling the vibration motor to generate a second vibration includes: obtaining a first vibration intensity of the speaker and a resonance frequency and a resonance direction of the electronic device when the speaker generates a first vibration; determining a motor vibration direction in a direction opposite to the resonance direction based on the resonance direction, and determining a second vibration intensity that is proportional to the first vibration intensity based on the first vibration intensity; and controlling the vibration motor to generate the second vibration based on the resonance frequency, the motor vibration direction, and the second vibration intensity.
[0009] In a possible implementation of the first aspect above, obtaining a first vibration intensity of the speaker when the speaker generates a first vibration and a resonance frequency and a resonance direction of the electronic device includes: in the process of the speaker generating the first vibration, determining that the electronic device is at a maximum resonance intensity at a target moment; using the device resonance frequency of the electronic device corresponding to the target moment as the resonance frequency, and using the vibration intensity of the speaker when the speaker corresponds to the target moment as the first vibration intensity.
[0010] In a possible implementation of the first aspect above, the electronic device also includes: a keyboard, wherein the center position of the keyboard is at a maximum resonance intensity at the target moment, and the device resonance frequency of the electronic device corresponding to the target moment is used as the resonance frequency, including: using the keyboard resonance frequency when the center position of the keyboard corresponds to the target moment as the resonance frequency.
[0011] In a possible implementation of the first aspect above, the electronic device further includes: a resonance detection unit, which acquires the resonance frequency and resonance direction of the electronic device by using a laser analysis method or an acceleration analysis method.
[0012] In a possible implementation of the first aspect above, the electronic device also includes: a speaker detection unit, which uses a preset speaker model to detect the vibration intensity of the speaker in real time, and grades the vibration intensity of the speaker to determine the vibration level of the speaker; based on the vibration level of the speaker, the vibration intensity of the corresponding vibration motor is determined, wherein the greater the vibration intensity of the speaker corresponding to the vibration level of the speaker, the greater the vibration intensity of the vibration motor.
[0013] In a possible implementation of the first aspect above, the electronic device is a laptop computer.
[0014] In a second aspect, an embodiment of the present invention provides a vibration reduction device, which includes a control unit, a speaker and a vibration motor; the control unit is used to control the speaker to play audio and generate a first vibration, wherein the vibration frequency of the first vibration includes the resonance frequency of the vibration reduction device, and the vibration direction of the first vibration includes the resonance direction of the vibration reduction device; and the control unit is used to control the vibration motor to generate a second vibration during the speaker playing audio, wherein the vibration direction of the second vibration is opposite to the resonance direction, the vibration frequency of the second vibration is the same as the resonance frequency, and the vibration intensity of the second vibration is proportional to the vibration intensity of the first vibration.
[0015] In a possible implementation of the second aspect above, the device further includes: a keyboard, wherein the installation position of the vibration motor corresponds to the center position of the keyboard.
[0016] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed on an electronic device, enables the electronic device to implement any one of the vibration reduction methods provided by the first aspect and various possible implementations of the first aspect.
[0017] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; and a processor, which is one of the processors of the electronic device, for executing the instructions stored in the memory to implement any one of the vibration reduction methods provided by the first aspect and various possible implementations of the first aspect.
[0018] In a fifth aspect, an embodiment of the present invention provides a program product, which includes instructions, and when the instructions are executed by an electronic device, the electronic device can implement any vibration reduction method provided by the first aspect and various possible implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 According to an embodiment of the present application, a flowchart of a vibration reduction method is shown.
[0020] Figure 2 According to an embodiment of the present application, an example schematic diagram of a laptop computer is shown.
[0021] Figure 3 According to an embodiment of the present application, an example schematic diagram of a resonance waveform and a vibration waveform is shown.
[0022] Figure 4 According to an embodiment of the present application, a flowchart of the steps of another vibration reduction method is shown.
[0023] Figure 5 A schematic diagram of a vibration device is shown according to an embodiment of the present application.
[0024] Figure 6 An example schematic diagram of an electronic device is shown according to an embodiment of the present application. DETAILED DESCRIPTION
[0025] The specific implementation methods of the present application will be described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0027] As mentioned above, when playing audio, electronic devices such as laptops are prone to resonance, which in turn affects the sound quality of the laptop and the user experience. In some embodiments, the resonance can be reduced by filling the gap between the speaker (speaker) and the housing with foam (e.g., sound-absorbing sponge); or the resonance can be reduced by increasing the number of fixing screws on the keyboard for fixing the keyboard to the housing.
[0028] However, too much foam filling will affect the heat dissipation function of the laptop, thereby affecting the performance of the laptop; and too many fixing screws will affect the arrangement of other components in the laptop and even increase the size of the laptop. Therefore, filling with foam and adding fixing screws can only weaken the resonance to a certain extent, and the actual vibration reduction effect is not good.
[0029] In order to solve the above problems, the embodiment of the present application proposes a vibration reduction method for achieving vibration reduction of an electronic device. Specifically, a speaker and a vibration motor are installed in the electronic device, and the electronic device controls the speaker to play audio and generate a first vibration, wherein the vibration frequency of the first vibration includes the resonance frequency of the electronic device, and the vibration direction of the first vibration includes the resonance direction of the electronic device; during the process of the speaker playing audio, the vibration motor is controlled to generate a second vibration, wherein the vibration direction of the second vibration is opposite to the resonance direction, the vibration frequency of the second vibration is the same as the resonance frequency, and the vibration intensity of the second vibration is proportional to the vibration intensity of the first vibration.
[0030] It can be understood that the vibration frequency of the second vibration of the vibration motor is the same as the resonance frequency of the electronic device, while the vibration direction of the second vibration of the vibration motor is opposite to the resonance direction of the electronic device, that is, the second vibration of the vibration motor can offset or reduce the resonance of the electronic device, thereby achieving the purpose of vibration reduction.
[0031] It can be understood that the speaker generates a first vibration, and the electronic device resonates with the first vibration, and the greater the vibration intensity of the first vibration, the greater the resonance intensity of the resonance. In this way, the vibration intensity corresponding to the second vibration of the vibration motor is directly proportional to the vibration intensity corresponding to the first vibration of the speaker, that is, the greater the vibration intensity of the first vibration, the greater the vibration intensity of the second vibration. Furthermore, when the resonance intensity of the resonance increases with the vibration intensity of the first vibration, the vibration intensity of the second vibration also increases with the vibration intensity of the first vibration, and because the vibration direction of the second vibration of the vibration motor is opposite to the resonance direction of the electronic device, the second vibration of the vibration motor can offset or reduce the resonance of the speaker when playing audio to the maximum extent, so as to achieve the purpose of vibration reduction, reduce the vibration sense of the electronic device when the user uses the electronic device to play audio, and improve the user experience.
[0032] In some embodiments, the electronic device can be a laptop computer, or it can be any device that can play audio, such as a mobile phone, a tablet computer, a smart watch, a car device, a portable game console, etc. The electronic device can play audio through an audio playback unit in the electronic device, such as a speaker, without specific limitation.
[0033] The following uses an example in which the electronic device is a laptop computer to explain the embodiments of the present application.
[0034] Figure 1 According to some embodiments of the present application, a flow chart of a vibration reduction method is shown. It can be understood that Figure 1 Each step of the process shown in the figure is performed by an electronic device. Figure 1 The execution entities of each step will not be described repeatedly in the steps of the process shown. Figure 1 As shown, the process includes but is not limited to the following steps:
[0035] S101: Controlling a speaker to play audio and generate a first vibration.
[0036] In some embodiments, a speaker and a vibration motor are installed in the electronic device, and the installation position of the vibration motor can be determined based on the position of the speaker or the position of other components in the electronic device, without limitation. Figure 2 As shown, taking a laptop as an example of an electronic device, the speakers are generally arranged at two corners of point A and point B below the keyboard of the laptop. When the keyboard is assembled as a single component, the center position of the keyboard (such as Figure 2 Point C in the middle is generally the weakest area in rigidity. The installation position of the vibration motor can be installed inside the notebook computer corresponding to the center position of the keyboard. For example, the installation position of the vibration motor is located at Figure 2It can be understood that the method of the present application can be applied to any state of the laptop computer playing audio, such as Figure 2 The unfolded state shown, or the closed state such as a laptop computer, is not specifically limited.
[0037] In some embodiments, when the laptop plays audio through a speaker, the speaker generates a first vibration, and the laptop resonates with the first vibration. In the process of the laptop resonating with the first vibration, the center of the keyboard is generally the weakest area in rigidity, that is, the center of the laptop keyboard is most affected by the resonance.
[0038] In some embodiments, when controlling a speaker to play audio, the resonance frequency and resonance direction of the laptop computer and the first vibration intensity of the speaker are obtained when the speaker generates a first vibration, and the vibration direction of the motor in the opposite direction to the resonance direction is determined based on the resonance direction, and the second vibration intensity that is proportional to the first vibration intensity is determined based on the first vibration intensity.
[0039] Exemplarily, during the process of the laptop computer generating resonance, it is determined that the laptop computer is at the maximum resonance intensity at the target time, and the device resonance frequency of the laptop computer corresponding to the target time is used as the resonance frequency of the laptop computer, and the speaker vibration intensity of the speaker corresponding to the target time is used as the first vibration intensity. For example, during the process of the laptop computer playing a three-minute audio through the speaker, the laptop computer resonates with the vibration of the speaker, and the laptop computer is at the maximum resonance intensity at the target time of the sixtieth second; that is, the device resonance frequency of the laptop computer corresponding to the sixtieth second is used as the resonance frequency of the laptop computer, and the speaker vibration intensity of the speaker corresponding to the sixtieth second is used as the first vibration intensity.
[0040] Furthermore, since the center position of the laptop keyboard is most affected by the resonance, the resonance intensity of the laptop can be determined by the resonance intensity of the center position of the laptop keyboard. For example, the center position of the laptop keyboard is at the maximum resonance intensity at the target time of the 60th second, and the keyboard resonance frequency at the center position of the keyboard corresponding to the 60th second is taken as the resonance frequency of the laptop.
[0041] In some embodiments, a resonance detection unit for detecting the vibration of the laptop computer and a speaker detection unit for detecting the vibration of the speaker are deployed in the laptop computer. In the process of the laptop computer playing the audio such as piano sound source, sweep frequency sound source, dynamic large signal music sound source through the speaker, the laptop computer can detect the vibration frequency and vibration direction of the center position of the laptop computer corresponding to the keyboard by the resonance detection unit (such as a laser analyzer or an accelerometer) using a laser analysis method or an acceleration analysis method to determine the resonance frequency and resonance direction of the laptop computer when the center position of the laptop computer keyboard is at the maximum resonance intensity. At the same time, the speaker detection unit uses a preset speaker model to detect the vibration intensity of the speaker in real time to determine the first vibration intensity corresponding to the speaker when the center position of the laptop computer keyboard is at the maximum resonance intensity, and the speaker model is used to grade the vibration intensity of the speaker to determine the vibration level of the speaker, and the corresponding second vibration intensity of the vibration motor is determined based on the vibration level of the speaker, wherein the greater the vibration intensity of the speaker corresponding to the vibration level of the speaker, the greater the second vibration intensity of the vibration motor.
[0042] S102: When the speaker is playing audio, controlling the vibration motor to generate a second vibration.
[0043] In some embodiments, the laptop computer controls the vibration motor through the motor driver chip to generate the second vibration according to the resonance frequency, motor vibration direction and second vibration intensity determined in step S101. The motor vibration direction is opposite to the resonance direction. For example, at the same time, if the resonance direction is in the same direction as the gravity direction (vertically downward), the motor vibration direction is opposite to the gravity direction (vertically upward); the second vibration intensity is proportional to the first vibration intensity. For example, the greater the first vibration intensity, the greater the second vibration intensity.
[0044] In some embodiments, the vibration intensity of the speaker when the speaker generates the first vibration is graded by the speaker model, for example, the vibration intensity is divided into three intensity levels from small to large: low, medium, and high. Furthermore, the corresponding second vibration intensity is set at different intensity levels corresponding to the first vibration intensity to reduce the complexity of the method. For example, when the first vibration intensity is low, the second vibration intensity is A, when the first vibration intensity is medium, the second vibration intensity is B, when the first vibration intensity is high, the second vibration intensity is C, and the vibration intensity is A, B, and C from small to large.
[0045] In some embodiments, when the speaker generates a first vibration, the resonance intensity of the laptop computer is a first resonance intensity; when the speaker generates a first vibration and the vibration motor generates a second vibration, the resonance intensity of the laptop computer is a second resonance intensity, wherein the second resonance intensity is less than the first resonance intensity.
[0046] It can be understood that since the vibration motor vibrates at the resonance frequency of the laptop computer, and the vibration direction of the second vibration of the vibration motor is opposite to the resonance direction of the laptop computer, the second vibration intensity corresponding to the second vibration of the vibration motor is proportional to the first vibration intensity corresponding to the first vibration of the speaker, that is, the resonance of the laptop computer can be offset or reduced by the second vibration of the vibration motor. For example, Figure 3 As shown, Figure 3 A schematic diagram of keyboard vibration in a laptop computer is shown, wherein the waveform shown above the keyboard is the resonance waveform when the keyboard resonates, the waveform shown below the keyboard is the vibration waveform when the vibration motor generates the second vibration, and the installation position of the vibration motor is located at point C below the keyboard. When the second vibration of the vibration motor completely offsets the resonance of the laptop computer, the resonance intensity of the laptop computer can be 0, thereby achieving the purpose of vibration reduction. In addition, since the installation position of the vibration motor corresponds to point C, the center position of the keyboard, the vibration of the vibration motor can effectively offset or reduce the resonance of the keyboard, reduce the vibration feeling at the keyboard when the user uses the laptop computer to play audio, and improve the user experience.
[0047] It can be understood that the above-mentioned resonance waveform can be a sinusoidal waveform on the Z axis (such as a sinusoidal waveform in the same direction as the direction of gravity). When the laptop computer resonates, the vibration motor simultaneously provides a sinusoidal waveform on the Z axis with the same vibration frequency, equal vibration intensity, and opposite vibration direction (such as a sinusoidal waveform in the opposite direction of gravity), so that the sinusoidal waveforms in the two directions cancel each other out. Two vibrations with the same vibration frequency and opposite vibration directions can cancel each other out, and the cancellation result is zero amplitude, that is, the two vibrations interfere with each other and cancel each other out, producing a calm state, thereby achieving the purpose of vibration reduction. In this way, based on the above-mentioned vibration reduction method, when the laptop computer resonates, the resonance can be quickly reduced, and the above-mentioned method is easy to implement and low in cost.
[0048] Figure 4 According to some embodiments of the present application, another process step diagram of a vibration reduction method is shown. Figure 4 As shown, the process includes but is not limited to the following steps:
[0049] S401: Using a laser analyzer or an accelerometer to detect the vibration frequency F1 and the vibration direction X1 of the center position of the keyboard of the notebook computer.
[0050] In some embodiments, when a laptop computer plays audio such as a piano sound source, a swept frequency sound source, a dynamic large-signal music sound source, etc. through a speaker, a laser analyzer or an accelerometer can be used to detect the keyboard resonance frequency and the keyboard resonance direction of the center position of the laptop computer's keyboard to determine the vibration frequency F1 (an example of the corresponding resonance frequency) and the vibration direction X1 (an example of the corresponding resonance direction). For details, please refer to the description of step S101 above, which will not be repeated here.
[0051] S402: Using the audio driver chip to establish a speaker model to monitor the vibration intensity Y1 of the speaker in real time.
[0052] In some embodiments, the vibration intensity of the speaker is detected in real time by the speaker model and the vibration intensity is graded. It can be understood that the vibration intensity of the speaker is positively correlated with the resonance intensity of the laptop, that is, the greater the vibration intensity of the speaker, the greater the resonance intensity of the laptop. When the center position of the keyboard of the laptop is determined to be at the maximum resonance intensity by the speaker model, the vibration intensity Y1 of the speaker (corresponding to the example of the first vibration intensity) can be specifically referred to the description of the above step S101, which will not be repeated here.
[0053] S403: Using the motor driving chip to control the vibration motor to generate vibration according to the vibration direction X2, vibration frequency F2, and vibration intensity Y2.
[0054] In some embodiments, the vibration direction X2 (corresponding to an example of the motor vibration direction) is opposite to the vibration direction X1, the vibration frequency F2 is the same as the vibration frequency F1, and the vibration intensity Y2 (corresponding to an example of the second vibration intensity) is set according to the level of the vibration intensity Y1. The vibration motor is controlled to generate vibration according to the vibration direction X2, the vibration frequency F2, and the vibration intensity Y2. The vibration of the vibration motor can offset or reduce the resonance of the laptop computer, thereby achieving the purpose of vibration reduction, thereby reducing the vibration feeling at the keyboard when the user uses the laptop computer to play audio, and improving the user experience. For details, please refer to the description of the above step S102, which will not be repeated here.
[0055] Figure 5 According to some embodiments of the present application, a schematic diagram of a vibration device is shown. Figure 5 As shown, the vibration device includes a control unit, a speaker and a vibration motor.
[0056] In some embodiments, the control unit is used to control the speaker to play audio and generate a first vibration, wherein the vibration frequency of the first vibration includes the resonance frequency of the electronic device, and the vibration direction of the first vibration includes the resonance direction of the electronic device; at the same time, the control unit is also used to control the vibration motor to generate a second vibration during the speaker playing audio, wherein the vibration direction of the second vibration is opposite to the resonance direction, the vibration frequency of the second vibration is the same as the resonance frequency, and the vibration intensity of the second vibration is proportional to the vibration intensity of the first vibration. Furthermore, when the speaker generates the first vibration, the resonance intensity of the electronic device is the first resonance intensity; when the speaker generates the first vibration and the vibration motor generates the second vibration, the resonance intensity of the electronic device is the second resonance intensity, wherein the second resonance intensity is less than the first resonance intensity. For details, please refer to the corresponding above. Figures 1 to 4 The description is not repeated here.
[0057] In some embodiments, the control unit includes an audio driver chip and a motor driver chip. The audio driver chip controls the speaker to play audio and generate a first vibration, and the motor driver chip controls the vibration motor to generate a second vibration.
[0058] In some embodiments, the vibration device further includes a keyboard, and the installation position of the vibration motor corresponds to the center position of the keyboard. Figure 2 The description is not repeated here.
[0059] In some embodiments, the vibration device further includes a resonance detection unit and a speaker detection unit, the resonance detection unit is used to detect the vibration direction and vibration frequency of the vibration device, and the speaker detection unit is used to detect the vibration intensity of the speaker.
[0060] Figure 6 According to some embodiments of the present application, a schematic diagram of an electronic device 100 is shown. Figure 6 As shown, the electronic device 100 includes one or more processors 101, a system memory 102, a non-volatile memory (NVM) 103, an input / output (I / O) device 104, a communication interface 105, and a system control logic 106 for coupling the processor 101, the system memory 102, the non-volatile memory 103, the communication interface 105 and the input / output (I / O) device 104. Among them:
[0061] The processor 101 may include one or more processing units, for example, a central processing unit CPU (central processing unit), an image processor GPU (graphics processing unit), a digital signal processor DSP (digital signal processor), a microprocessor MCU (micro-programmed control unit), artificial intelligence (artificial intelligence, AI), a processor or a programmable logic device FPGA (field programmable gate array), a neural network processor (Neural-network Processing Unit, NPU), etc. The data processing unit or processing circuit may include one or more single-core or multi-core processors.
[0062] The system memory 102 is a volatile memory, such as a random-access memory (RAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), etc. The system memory is used to temporarily store data and / or instructions.
[0063] The non-volatile memory 103 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, the non-volatile memory 103 may include any suitable non-volatile memory such as a flash memory and / or any suitable non-volatile storage device, such as a hard disk drive (HDD), a compact disc (CD), a digital versatile disc (DVD), a solid-state drive (SSD), etc. In some embodiments, the non-volatile memory 103 may also be a removable storage medium, such as a secure digital (SD) memory card, etc.
[0064] In particular, the system memory 102 and the non-volatile memory 103 may respectively include: a temporary copy and a permanent copy of the instruction 107. The instruction 107 may include: when executed by at least one of the processors 101, the electronic device 100 implements the vibration reduction method provided in various embodiments of the present application.
[0065] The communication interface 105 may include a transceiver for providing a wired or wireless communication interface for the electronic device 100, thereby communicating with any other suitable device through one or more networks. In some embodiments, the communication interface 105 may be integrated into other components of the electronic device 100, for example, the communication interface 105 may be integrated into the processor 101. In some embodiments, the electronic device 100 may communicate with other devices through the communication interface 105.
[0066] The input / output (I / O) device 104 may include input devices such as a keyboard, a mouse, etc., and output devices such as a display, etc. A user may interact with the electronic device 100 via the input / output (I / O) device 104 .
[0067] System control logic 106 may include any suitable interface controller to provide any suitable interface with other modules of electronic device 100. For example, in some embodiments, system control logic 106 may include one or more memory controllers to provide interfaces to system memory 102 and non-volatile memory 103.
[0068] In some embodiments, at least one of the processors 101 may be packaged together with the logic of one or more controllers for the system control logic 106 to form a system in package (SiP). In other embodiments, at least one of the processors 101 may also be integrated with the logic of one or more controllers for the system control logic 106 on the same chip to form a system-on-chip (SOC).
[0069] Understandably, Figure 6 The structure of the electronic device 100 shown is only an example. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware, which is not limited here.
[0070] In some embodiments, the embodiments of the present application further provide a computer-readable medium, which stores a program code. When the computer program code runs on a computer, the computer executes the methods in the above aspects.
[0071] In some embodiments, the embodiments of the present application further provide a computer program product, which includes: a computer program code, which enables the computer to execute the methods in the above aspects when the computer program code runs on a computer.
[0072] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer module or module code executed on a programmable system, and the programmable system includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.
[0073] The module code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0074] Module code can be implemented with high-level modular language or object-oriented programming language to communicate with the processing system. When necessary, module code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0075] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including but not limited to floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROM), random access memories (RAM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
[0076] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a specific figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features. Reference to "one embodiment" or "embodiment" in the specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one exemplary embodiment or technology disclosed according to the embodiment of the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily all refer to the same embodiment.
[0077] The disclosure of the embodiment of the present application also relates to an operating device for executing the text. The device can be specially constructed for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.
[0078] It should also be stated that the steps in the methods and processes in the embodiments of the present application are numbered for ease of reference, rather than to limit the order of precedence. If there is an order between the steps, the text description shall prevail.
[0079] In addition, the language used in this specification has been primarily selected for readability and instructional purposes and may not be selected to describe or limit the disclosed subject matter. Therefore, the present application embodiment disclosure is intended to illustrate rather than limit the scope of the concepts discussed herein.
Claims
1. A vibration reduction method, applied to electronic equipment, characterized in that: The electronic device includes a speaker and a vibration motor, and the method includes: Controlling the speaker to play audio and generate a first vibration, wherein a vibration frequency of the first vibration includes a resonance frequency of the electronic device, and a vibration direction of the first vibration includes a resonance direction of the electronic device; While the speaker is playing the audio, the vibration motor is controlled to generate a second vibration, wherein a vibration direction of the second vibration is opposite to the resonance direction, a vibration frequency of the second vibration is the same as the resonance frequency, and a vibration intensity of the second vibration is proportional to the vibration intensity of the first vibration.
2. The method according to claim 1, characterized in that When the speaker generates the first vibration, the resonance intensity of the electronic device is a first resonance intensity; When the speaker generates the first vibration and the vibration motor generates the second vibration, the resonance intensity of the electronic device is a second resonance intensity, wherein the second resonance intensity is less than the first resonance intensity.
3. The method according to claim 1 or 2, characterized in that: The controlling the vibration motor to generate a second vibration comprises: Acquire a first vibration intensity of the speaker and a resonance frequency and a resonance direction of the electronic device when the speaker generates the first vibration; Determine a motor vibration direction opposite to the resonance direction based on the resonance direction, and determine a second vibration intensity proportional to the first vibration intensity based on the first vibration intensity; The vibration motor is controlled to generate the second vibration based on the resonance frequency, the motor vibration direction, and the second vibration intensity.
4. The method according to claim 3, characterized in that The obtaining of the first vibration intensity of the speaker and the resonance frequency and resonance direction of the electronic device when the speaker generates the first vibration includes: During the process in which the speaker generates the first vibration, determining that the electronic device is at a maximum resonance intensity at a target time; The device resonance frequency of the electronic device corresponding to the target time is used as the resonance frequency, and the speaker vibration intensity of the speaker corresponding to the target time is used as the first vibration intensity.
5. The method according to claim 4, characterized in that The electronic device further comprises: a keyboard, wherein the center position of the keyboard is at the maximum resonance intensity at the target time, and The step of using the device resonance frequency of the electronic device corresponding to the target time as the resonance frequency includes: The resonance frequency of the keyboard when the center position of the keyboard corresponds to the target time is used as the resonance frequency.
6. The method according to claim 5, characterized in that The installation position of the vibration motor corresponds to the center position of the keyboard.
7. The method according to any one of claims 1 to 6, characterized in that: The electronic device further comprises: a resonance detection unit, The resonance detection unit adopts a laser analysis method or an acceleration analysis method to obtain the resonance frequency and resonance direction of the electronic device.
8. The method according to any one of claims 1 to 6, characterized in that: The electronic device further comprises: a speaker detection unit, The speaker detection unit uses a preset speaker model to detect the vibration intensity of the speaker in real time, and grades the vibration intensity of the speaker to determine the vibration level of the speaker; The vibration intensity of the corresponding vibration motor is determined based on the vibration level of the speaker, wherein the greater the vibration intensity of the speaker corresponding to the vibration level of the speaker is, the greater the vibration intensity of the vibration motor is.
9. The method according to any one of claims 1 to 6, characterized in that: The electronic device is a notebook computer.
10. A vibration reduction device, characterized in that: The vibration reduction device includes a control unit, a speaker and a vibration motor; The control unit is used to control the speaker to play audio and generate a first vibration, wherein the vibration frequency of the first vibration includes the resonance frequency of the vibration reduction device, and the vibration direction of the first vibration includes the resonance direction of the vibration reduction device; and The control unit is used to control the vibration motor to generate a second vibration while the speaker is playing the audio, wherein the vibration direction of the second vibration is opposite to the resonance direction, the vibration frequency of the second vibration is the same as the resonance frequency, and the vibration intensity of the second vibration is proportional to the vibration intensity of the first vibration.
11. The device according to claim 10, characterized in that The device further comprises: a keyboard, wherein the installation position of the vibration motor corresponds to the center position of the keyboard.
12. A computer-readable storage medium, characterized in that: The readable storage medium stores instructions, which, when executed on an electronic device, enable the electronic device to implement the method described in any one of claims 1 to 9.
13. An electronic device, characterized in that: include: a memory for storing instructions to be executed by one or more processors of the electronic device; And a processor, which is one of the processors of the electronic device, configured to execute instructions stored in the memory to implement the method according to any one of claims 1 to 9.
14. A program product, characterized in that The program product includes instructions, and when the instructions are executed on an electronic device, the electronic device implements the method according to any one of claims 1 to 9.