Noise reduction method and device for telescopic lens and electronic equipment

By adjusting the motor drive frequency of the telescopic lens to match the audio file, high-frequency noise was converted into low-frequency rhythmic sound effects, solving the noise problem of the telescopic lens and improving the user experience and sense of ritual.

CN120980338APending Publication Date: 2025-11-18HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410623756.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

In existing technologies, telescopic lenses generate significant noise during movement, and current noise reduction methods are ineffective in reducing noise and may even introduce new sound interference, resulting in a poor user experience.

Method used

By changing the motor drive frequency of the telescopic lens to match the audio file, high-frequency mechanical noise is converted into low-frequency rhythmic sound effects, thus reducing noise problems.

Benefits of technology

It effectively reduces the noise of the telescopic lens, enhances the user experience, increases the sense of ceremony, and does not introduce additional sound interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120980338A_ABST
    Figure CN120980338A_ABST
Patent Text Reader

Abstract

The invention provides a noise reduction method and device for a telescopic lens and electronic equipment, and the method comprises the steps: obtaining a telescoping instruction of the telescopic lens, and enabling the telescopic lens to be driven by a motor; acquiring an audio file; the driving motor drives the telescopic lens to move in a target mode, and the target mode is matched with the audio file. In the application, the telescopic lens is driven to move in the target mode matched with the audio file, so that the telescopic lens can accompany the telescopic sound effect during the extension / retraction movement, and the extension / retraction movement noise of the telescopic lens is edited into the lens telescopic sound effect which is strong in law and matched with the extension / retraction visual effect. Not only is the noise problem of the stepping motor solved, but also the sense of ceremony of the telescopic lens is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of noise reduction technology, and more specifically to a noise reduction method, apparatus and electronic device for a telescopic lens. Background Technology

[0002] With the development of technology, smartphone screen ratios are getting larger and larger, and some smartphones have been designed with retractable front cameras. The retractable camera uses a stepper motor to drive the extension and retraction of the camera, which is quite noisy during operation.

[0003] In existing technologies, adding other music signals is typically used to mask noise. This approach not only fails to remove the noise from the zooming in and out camera movement but also introduces new sounds, resulting in a worse user experience. Summary of the Invention

[0004] This application provides a noise reduction method, apparatus, and electronic device for a telescopic lens. By changing the drive frequency of the motor of the telescopic lens, the noise problem of the telescopic lens is reduced, thereby improving the user experience.

[0005] In a first aspect, a noise reduction method for a telescopic lens is provided. This noise reduction method can be applied to electronic devices with a telescopic lens. The noise reduction method includes: obtaining a telescopic command for the telescopic lens, wherein the telescopic lens is driven by a motor; obtaining an audio file; and driving the motor to move the telescopic lens in a target manner, wherein the target manner matches the audio file.

[0006] For example, the telescopic command may include an extension command for the telescopic lens and a retraction command for the telescopic lens.

[0007] For example, the scalable sound effect can be a musical tone, a mechanical sound effect, white noise, or a user-defined sound effect.

[0008] In this embodiment, the telescopic lens movement is driven by a target method matching the audio file, so that the telescopic lens can be accompanied by the telescopic sound effects of the audio file during its extension / retraction movement. The noise of the telescopic lens's extension / retraction movement is edited into a lens extension / retraction sound effect with a strong sense of rhythm that matches the visual effect of extension / retraction. This not only solves the noise problem of the telescopic lens but also increases the sense of ritual of the telescopic lens, enhancing the user experience.

[0009] In conjunction with the first aspect, in some implementations of the first aspect, the audio file indicates the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the frequency of the stretching sound effect matches the driving frequency of the motor.

[0010] In this embodiment, by changing the driving frequency of the motor of the telescopic lens, the original high-frequency, harsh mechanical noise is edited into a low-frequency, rhythmic telescopic sound effect, thereby reducing the noise problem of the telescopic lens and improving the user experience.

[0011] In conjunction with the first aspect, in some implementations of the first aspect, the audio file indicates the index value of the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the index value of the frequency of the stretching sound effect matches the driving frequency of the motor.

[0012] In this embodiment, when storing audio files, the index value of the frequency of the stretching sound effect can be stored, thereby reducing the storage pressure on the memory. In this case, the audio file can indicate the index value of the frequency of the stretching sound effect. Furthermore, the driving frequency of the motor can be determined based on the index value of the frequency of the stretching sound effect, that is, the index value of the frequency of the stretching sound effect matches or has a corresponding relationship with the driving frequency of the motor.

[0013] In conjunction with the first aspect, in some implementations of the first aspect, the audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the duration of the driving frequency of the motor, and the duration of the frequency of the stretching sound effect matches the duration of the driving frequency of the motor.

[0014] For example, the target mode of motor operation can indicate the motor's drive frequency and the running time corresponding to each drive frequency.

[0015] In this embodiment of the application, when the drive motor is running in the target mode, the frequency of the telescopic sound effect can be used as the driving frequency of the motor, and the duration of the telescopic sound effect frequency can be used as the running time of the driving frequency of the motor. This allows the telescopic lens to be accompanied by the telescopic sound effect of the audio file when it extends / retracts, thereby reducing the noise generated by the motor.

[0016] In conjunction with the first aspect, in some implementations of the first aspect, the audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the number of operating cycles of the motor's drive frequency, and the duration of the frequency of the stretching sound effect matches the number of operating cycles of the motor's drive frequency.

[0017] For example, the target mode of motor operation can indicate the motor's drive frequency and the number of operating cycles (or the number of continuous pulses of the pulse signal) corresponding to each drive frequency.

[0018] For example, the target mode of motor operation can indicate the motor's drive frequency, the runtime corresponding to each drive frequency, and the number of operating cycles (or the number of continuous pulses of the pulse signal) corresponding to each drive frequency.

[0019] In the embodiments of this application, when the drive motor is running in the target mode, the frequency of the telescopic sound effect can be used as the driving frequency of the motor, and the duration of the telescopic sound effect frequency can be used as the number of operating cycles of the driving frequency of the motor. This allows the telescopic lens to be accompanied by the telescopic sound effect of the audio file when it extends / retracts, thereby reducing the noise generated by the motor.

[0020] In conjunction with the first aspect, in certain implementations of the first aspect, driving the motor to move the telescopic lens in a target manner includes: driving the motor to move the telescopic lens in a first target manner, wherein the first target manner indicates that the driving frequency of the motor is a first frequency and the number of operating cycles of the first frequency is a first number of cycles, or, the first target manner indicates that the driving frequency of the motor is a first frequency and the operating duration of the first frequency is a first duration, or, the first target manner indicates that the driving frequency of the motor is a first frequency, the number of operating cycles of the first frequency is a first number of cycles, and the operating duration of the first frequency is a first duration; driving the motor to move the telescopic lens in a second target manner, wherein the second target manner indicates that the driving frequency of the motor is a second frequency and the number of operating cycles of the second frequency is a second number of cycles, or, the second target manner indicates that the driving frequency of the motor is a second frequency and the operating duration of the second frequency is a second duration, or, the second target manner indicates that the driving frequency of the motor is a second frequency, the number of operating cycles of the second frequency is a second number of cycles, and the operating duration of the second frequency is a second duration.

[0021] In this embodiment, after the drive motor completes the extension / retraction movement of the telescopic lens in the first target manner, it can continue the extension / retraction movement of the telescopic lens in the second target manner, so that the telescopic lens can be accompanied by the extension / retraction sound effect of the audio file during the extension / retraction movement, thereby reducing the noise generated by the motor.

[0022] Secondly, a noise reduction device for a telescopic lens is provided. The noise reduction device includes a first acquisition module, a second acquisition module, and a drive module. The first acquisition module is used to acquire telescopic commands for the telescopic lens; the second acquisition module is used to acquire an audio file; and the drive module is used to drive the motor to move the telescopic lens in a target manner, wherein the target manner matches the audio file.

[0023] In conjunction with the second aspect, in some implementations of the second aspect, the audio file indicates the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the frequency of the stretching sound effect matches the driving frequency of the motor.

[0024] In conjunction with the second aspect, in some implementations of the second aspect, the audio file indicates the index value of the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the index value of the frequency of the stretching sound effect matches the driving frequency of the motor.

[0025] In conjunction with the second aspect, in some implementations of the second aspect, the audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the duration of the driving frequency of the motor, and the duration of the frequency of the stretching sound effect matches the duration of the driving frequency of the motor.

[0026] In conjunction with the second aspect, in some implementations of the second aspect, the audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the number of operating cycles of the motor's drive frequency, and the duration of the frequency of the stretching sound effect matches the number of operating cycles of the motor's drive frequency.

[0027] In conjunction with the second aspect, in some implementations of the second aspect, the driving module is further configured to: drive the motor to move the telescopic lens in a first target manner, wherein the first target manner indicates that the driving frequency of the motor is a first frequency, the number of operating cycles of the first frequency is a first number of cycles, and / or the operating duration of the first frequency is a first duration; drive the motor to move the telescopic lens in a second target manner, wherein the second target manner indicates that the driving frequency of the motor is a second frequency, the number of operating cycles of the second frequency is a second number of cycles, and / or the operating duration of the second frequency is a second duration.

[0028] In conjunction with the second aspect, in some implementations of the second aspect, the telescopic command includes an extension command for the telescopic lens and a retraction command for the telescopic lens.

[0029] In conjunction with the second aspect, in some implementations of the second aspect, the scalable sound effect is a musical tone sound effect, a mechanical original sound effect, white noise, or a user-defined sound effect.

[0030] It should be noted that the beneficial effects of the second aspect can be referred to the beneficial effects of the first aspect mentioned above, and will not be repeated here.

[0031] Thirdly, an electronic device is provided, comprising: an input module for acquiring extension and retraction commands for a telescopic lens; a controller for acquiring an audio file from a memory; the controller further for determining a target mode of motor operation based on the audio file; and the motor for driving the telescopic lens to move according to the target mode.

[0032] For example, the telescopic command may include an extension command for the telescopic lens and a retraction command for the telescopic lens.

[0033] For example, the scalable sound effect can be a musical tone, a mechanical sound effect, white noise, or a user-defined sound effect.

[0034] In this embodiment, the controller can determine the target operating mode of the motor based on the audio file, enabling the motor to drive the telescopic lens movement in a mode matching the audio file. This allows the telescopic lens to extend / retract with accompanying audio file sound effects, editing the noise of the lens's extension / retraction into a rhythmic sound effect that matches the visual effect of the extension / retraction. This not only solves the noise problem of the telescopic lens but also enhances its ceremonial feel and improves the user experience.

[0035] In conjunction with the third aspect, in some implementations of the third aspect, the audio file indicates the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the controller is further configured to determine the driving frequency of the motor based on the frequency of the stretching sound effect.

[0036] In this embodiment, the electronic device can reduce the noise problem of the telescopic lens and improve the user experience by changing the driving frequency of the motor of the telescopic lens. This is because the original high-frequency, harsh mechanical noise can be edited into a low-frequency, rhythmic telescopic sound effect.

[0037] In conjunction with the third aspect, in some implementations of the third aspect, the audio file indicates the index value of the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the controller is further configured to determine the driving frequency of the motor based on the index value of the frequency of the stretching sound effect.

[0038] In this embodiment, when storing audio files, the memory can store the index value of the frequency of the stretching sound effect, thereby reducing the storage pressure on the memory. In this case, the audio file can indicate the index value of the frequency of the stretching sound effect. Furthermore, the controller can determine the driving frequency of the motor based on the index value of the frequency of the stretching sound effect, that is, the index value of the frequency of the stretching sound effect matches or has a corresponding relationship with the driving frequency of the motor.

[0039] In conjunction with the third aspect, in some implementations of the third aspect, the audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the duration of the driving frequency of the motor, and the controller is further configured to determine the duration of the driving frequency of the motor based on the duration of the frequency of the stretching sound effect.

[0040] For example, the target mode of motor operation can indicate the motor's drive frequency and the running time corresponding to each drive frequency.

[0041] In this embodiment of the application, when the controller determines the target mode of driving the motor, it can use the frequency of the telescopic sound effect as the driving frequency of the motor and the duration of the telescopic sound effect as the running time of the driving frequency of the motor, so that the telescopic lens can be accompanied by the telescopic sound effect of the audio file when it extends / retracts, thereby reducing the noise generated by the motor.

[0042] In conjunction with the third aspect, in some implementations of the third aspect, the audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the number of operating cycles of the motor's drive frequency, and the controller is further configured to determine the number of operating cycles of the motor's drive frequency based on the duration of the frequency of the stretching sound effect.

[0043] For example, the target mode of motor operation can indicate the motor's drive frequency and the number of operating cycles (or the number of continuous pulses of the pulse signal) corresponding to each drive frequency.

[0044] For example, the target mode of motor operation can indicate the motor's drive frequency, the runtime corresponding to each drive frequency, and the number of operating cycles (or the number of continuous pulses of the pulse signal) corresponding to each drive frequency.

[0045] In this embodiment of the application, when the controller determines the target mode of the drive motor, it can use the frequency of the telescopic sound effect as the drive frequency of the motor and the duration of the telescopic sound effect as the number of operating cycles of the drive frequency of the motor. This allows the telescopic lens to be accompanied by the telescopic sound effect of the audio file during its extension / retraction movement, thereby reducing the noise generated by the motor.

[0046] In conjunction with the third aspect, in some implementations of the third aspect, the controller is further configured to send a first instruction to the motor driver, the first instruction indicating the target mode; the motor driver is configured to send a first signal to the motor according to the first instruction; and the motor is configured to drive the telescopic lens to move according to the first signal.

[0047] In this embodiment of the application, the controller can instruct the motor driver to drive the motor to operate in a target manner through a first instruction, and the motor driver can send a first signal to the motor so that the motor drives the telescopic lens to move in the target manner.

[0048] It should be noted that after the controller sends a first instruction to the motor driver, the motor driver sends a first signal to the motor, and the motor drives the telescopic lens to complete the movement as indicated by the first instruction, the controller can continue to send a subsequent second instruction to the motor driver, instructing the subsequent motor operation mode. The motor driver then sends a second signal to the motor, and the motor drives the telescopic lens to complete the subsequent movement as indicated by the second instruction.

[0049] Fourthly, an electronic device is provided, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the methods described in the first aspect and any possible implementation thereof.

[0050] Fifthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a computer, causes the computer to implement the methods described in the first aspect and any possible implementation thereof.

[0051] In a sixth aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the methods described in the first aspect and any possible implementation thereof.

[0052] In a seventh aspect, a chip is provided, including a processor for reading instructions stored in a memory, wherein when the processor executes the instructions, the chip implements the methods of the first aspect and any possible implementation thereof.

[0053] It should be noted that the beneficial effects of aspects four through seven mentioned above can be referred to the beneficial effects of aspect one mentioned above, and will not be repeated here. Attached Figure Description

[0054] Figure 1 This is a schematic diagram of an electronic device with a telescopic lens provided in an embodiment of this application.

[0055] Figure 2 This is a schematic diagram of another electronic device with a telescopic lens provided in an embodiment of this application.

[0056] Figure 3 This is a schematic diagram of the system architecture of the electronic device provided in the embodiments of this application.

[0057] Figure 4 This is a schematic flowchart of a noise reduction method for a telescopic lens provided in an embodiment of this application.

[0058] Figure 5 This is a schematic diagram of two types of scalable sound effect curves provided in the embodiments of this application.

[0059] Figure 6 This is a schematic diagram of another scalable sound effect curve provided in an embodiment of this application.

[0060] Figure 7 This is a schematic diagram of another scalable sound effect curve provided in an embodiment of this application.

[0061] Figure 8 This is a schematic diagram illustrating the design principle of a telescopic sound effect provided in an embodiment of this application.

[0062] Figure 9 This is a schematic diagram of another scalable sound effect curve provided in an embodiment of this application.

[0063] Figure 10 This is a schematic flowchart illustrating the operation of a motor driven by a driver provided in an embodiment of this application.

[0064] Figure 11 This is a structural schematic diagram of a noise reduction device for a telescopic lens provided in an embodiment of this application.

[0065] Figure 12 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0066] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0067] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one, two, or more than two. The term “and / or” is used to describe the relationship between related objects, indicating that three relationships may exist; for example, A and / or B can indicate: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character “ / ” generally indicates that the preceding and following related objects are in an “or” relationship.

[0068] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0069] With the development of smart terminal technology, high screen-to-body ratio, superior camera performance, and slim design have become important trends. Some smartphones and tablets have adopted retractable front-facing cameras to meet the increasing demands for higher screen-to-body ratios. However, improved camera capabilities often lead to a significant increase in camera height, resulting in the rear camera protrusion-to-body thickness ratio constantly pushing the limits. This clearly contradicts the design philosophy of slim and lightweight smart devices. The retractable rear camera solution is the most effective way to resolve the contradiction between superior camera performance and a slim design.

[0070] With the rapid development of telescopic lenses, more and more smart terminals are adopting telescopic cameras. Telescopic lenses generally use stepper motors to drive the lens extension and retraction. Stepper motors generate a significant amount of noise during operation; friction, vibration, and eccentricity are all causes of this noise. In particular, the periodic vibration between magnetic poles caused by electromagnetic driving force produces acoustic response components at the driving frequency and its harmonics, often manifesting as sharp noise in the 1kHz-10kHz range. The human ear is highly sensitive to noise in this frequency range, and high-frequency howling noise can cause users discomfort and irritability. Therefore, reducing the discomfort caused by stepper motor noise has become a major problem that urgently needs to be solved for telescopic lenses in smart terminals.

[0071] Currently, noise reduction solutions for telescopic lenses mainly fall into three categories: 1) Physical noise reduction using stepper motors is the most common noise reduction method used by major manufacturers. This involves reducing noise through physical means such as structural optimization, adding sound-absorbing materials, and selecting suitable lubricants. This type of solution often only reduces the noise level but cannot alleviate the discomfort caused by the high-frequency howling of the telescopic lens. It also requires additional space, making it particularly problematic in space-constrained scenarios such as mobile phones and tablets; 2) Some mobile phone manufacturers introduce other music signals to mask the noise of the telescopic lens. This type of solution does not actually remove the noise but instead introduces a louder new sound, which is very abrupt during use, resulting in a poor user experience. It also requires additional speakers to play sound effects, leading to higher costs and power consumption; 3) Noise cancellation using reverse signals. This solution requires microphones, noise codecs, and speakers, significantly increasing the cost of telescopic lens noise reduction devices and power consumption. Furthermore, it cannot achieve comprehensive and effective noise masking.

[0072] In practical applications, existing noise reduction solutions for telephoto lenses suffer from problems such as poor noise reduction effect, large area, high cost, high computing power and power consumption requirements, significant directional differences in noise reduction effect, and the introduction of abrupt new sounds. Therefore, this application provides a telephoto lens noise reduction solution that does not introduce additional sound, has no additional overhead, and is highly efficient in all aspects.

[0073] The following combination Figures 1 to 10This application details the noise reduction method, apparatus, and electronic equipment for telescopic lenses. The application primarily reduces the noise problem of telescopic lenses by changing the drive frequency of the motor of the telescopic lens to edit the original high-frequency, harsh mechanical noise into a low-frequency, rhythmic telescopic sound effect.

[0074] Figure 1 and Figure 2 This is a schematic diagram of an electronic device 100 with a telescopic lens provided in an embodiment of this application.

[0075] The electronic device 100 is equipped with a telescopic lens 200, such as Figure 1 As shown, the telescopic lens 200 can be a telescopic front-facing lens on the electronic device 100, extending out of the electronic device 100 when taking a picture and retracting back into the electronic device 100 when the picture is taken. Figure 2 As shown, the telescopic lens 200 can also be a telescopic rear lens on the electronic device 100, extending out of the electronic device 100 when taking a picture and retracting back when the picture is taken. In some embodiments, the telescopic lens 200 may include either a telescopic front lens or a telescopic rear lens.

[0076] It should be understood that the electronic device can be a portable computer, mobile phone, tablet computer, or other handheld smart terminal, or it can be a smart TV / smart screen, smart PTZ camera, or vehicle-mounted mobile device. In the following specific embodiments, the electronic device 100 is mainly described as a mobile phone.

[0077] Figure 3 A schematic diagram of the system architecture of electronic device 100 is shown.

[0078] like Figure 3 As shown, the electronic device 100 includes, but is not limited to, the following modules: controller 101, read-only memory (ROM) 102, random access memory (RAM) 103, integrated circuit bus 104, input / output (I / O) interface 105, memory 106, communication module 107, input module 108, driver 109, sound effect curve library 110, and motor 111. The communication module 107 is capable of wired or wireless communication, such as Wi-Fi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc. The input module 108 may include, for example, a touchscreen, keyboard, motion input, etc.

[0079] Among them, controller 101 is the control unit in the system architecture, which can be a central processing unit (CPU) or a microcontroller unit (MCU); ROM 102 is used to store the programs and parameters that the system executes regularly; RAM 103 stores various programs and data required for system operation; integrated circuit bus 104 is a channel for data interaction between different modules; memory 106 is used to store the program for controlling motor 111 and data required for system operation such as sound effect curves; communication module 107 performs communication processing such as sound effect curve upgrades via a network; input module 108 is used to input commands for extending or retracting the lens and to select the sound effect of the telescopic lens 200; driver 109 can drive motor 111 to move the telescopic lens 200; sound effect curve library 110 can be upgraded and updated through communication module 304 and stored in memory 302, and sound effect curve library 110 is used to store the telescopic sound effect curve file (or audio file) of the telescopic lens 200.

[0080] In some embodiments, the controller 101 can perform control actions such as upgrading sound effect curves and sending control signals to the driver 109 according to a program stored in the ROM 102 or loaded from the memory 106 into the RAM 103. The controller 101, ROM 102, and RAM 103 are connected via an integrated circuit bus 104, and the I / O interface 105 is also connected to the integrated circuit bus 104. The memory 106 is used to store the motor 111 control program and the lens extension sound effect file. The communication module 107 is used to provide online upgrade capability for the extension lens 200 control program and extension sound effect file. The driver 109 receives the I / O control signals sent by the controller 101 and drives the motor 111 to move according to the program settings. The memory 106, communication module 107, and driver 109 are all connected to the integrated circuit bus 104 via the I / O interface 105.

[0081] It should be noted that this application uses the controller 101 to select the sound effect curve file in the memory 106 based on the input of the input module 108, and controls the motor 111 to rotate according to the edited sound effect rules. The frequency of the sound effect curve file is positively correlated with the frequency of the drive signal of the motor 111. That is, essentially, the pitch of the motor 111's motion noise is changed by changing the frequency of the drive signal of the motor 111. Thus, through the reasonable design of the sound effect curve file, the sound effect editing effect of the telescopic lens 200 is achieved.

[0082] In some embodiments, the electronic device may further include a processor, an external memory interface, internal memory, a universal serial bus (USB) interface, a charging management module, a power management module, a battery, an antenna, a mobile communication module, a wireless communication module, an audio module, a speaker, a receiver, a microphone, a headphone jack, a sensor module, buttons, a motor, an indicator, a display screen, and a subscriber identification module (SIM) card interface, etc. The sensor module may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0083] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0084] Figure 4 This is a schematic flowchart illustrating a noise reduction method for a telescopic lens according to an embodiment of this application. The noise reduction method 400 can be applied to electronic devices with telescopic lenses, and specifically includes the following steps:

[0085] S401, obtain the telescopic command for telescopic lens 200.

[0086] For example, when it is necessary to extend or retract the telescopic lens 200, the extend or retract button on the input module 108 can be clicked, and the controller 101 can obtain the extension command of the telescopic lens 200. Optionally, the extension command of the telescopic lens 200 includes an extend command and / or a retract command.

[0087] It should be understood that users can also obtain telescopic commands for the telescopic lens 200 through other means, such as voice input.

[0088] S402, retrieve audio file.

[0089] For example, in response to a user's selection of an audio file, the controller 101 can select the telescopic sound effect curve (or audio file) of the telescopic lens 200 from the sound effect curve library 110 in the memory 106 and store it in the memory inside the controller 101 for execution of subsequent steps.

[0090] It should be understood that the sound effect curve library 110 can be pre-stored in the memory 106, and can also be upgraded and updated through the communication module 107 to update the scalable sound effect curves in the sound effect curve library 110. In some examples, users can also input new scalable sound effect curves through the input module 108 and store them in the sound effect curve library 110.

[0091] The audio file can indicate the frequency and duration of the stretching sound effect, or it can indicate the index value of the stretching sound effect frequency and its duration. The audio file can be represented as a stretching sound effect curve. It should be understood that in some examples, to save storage space in memory 106, the frequency of the stretching sound effect can be replaced by its index value when storing the audio file, with a one-to-one correspondence between the index value and the frequency. For example, memory 106 can store a mapping table indicating the correspondence between the frequency and index value of the stretching sound effect. Thus, when actually storing the audio file, the frequency of the stretching sound effect can be indicated by its index value, thereby saving storage space.

[0092] For example, such as Figure 5 As shown, Figure 5 The diagram illustrates two types of telescopic sound effect curves, which describe the pitch (or frequency) of the sound effect when the telescopic lens 200 extends and retracts, as well as the duration of each pitch (or the duration of each frequency). To complement the visual effect of the telescopic lens 200 extending, the pitch can be continuously increased (e.g., ...). Figure 5 As shown in (a)); in conjunction with the retractable visual effect of the telescopic lens 200, the pitch can continue to decrease (as shown in (a)); Figure 5 (As shown in (b)). It should be understood that Figure 6 In the text, f1-f4 represent the fundamental frequency of the sound emitted by the telescopic lens 200 during its movement, i.e., the pitch of the sound effect of the telescopic lens 200.

[0093] By designing the telescopic sound effect curve as a sequence of increasing or decreasing frequencies, the driving frequency of the telescopic lens 200's motor continuously increases / decreases in stages, resulting in a continuous increase / decrease in the noise frequency of the telescopic lens 200. This increases the rhythm of the noise frequency, making the noise of the telescopic lens 200 more pleasant to listen to. The visual effect of the telescopic lens 200 extending / retracting, combined with the auditory experience of continuously increasing / decreasing noise frequency, creates a correspondence between visual and auditory experiences, enhancing the sense of ritual in smart terminal photography.

[0094] For example, the sound effect curve design of the telescopic lens 200 can follow an overall upward / downward trend that complements the visual effect of extending / retracting, using a combination of multiple curve segments to enhance sound detail. Taking the extension process of the telescopic lens 200 as an example, another telescopic sound effect curve is as follows: Figure 6 As shown. In Figure 6 In the middle, in conjunction with the extended visual effect of the 200mm telescopic lens, the overall tone rises, dips slightly in the middle, and then rises sharply at the end to indicate the conclusion. This should be understood. Figure 6 In the text, f1-f10 represent the fundamental frequency of the sound emitted by the telescopic lens 200 during its movement, i.e., the pitch of the sound effect of the telescopic lens 200.

[0095] It should be understood that Figure 5 and Figure 6 The different lengths of the horizontal lines correspond to the duration of different pitches (or frequencies). Figure 5 and Figure 6 As can be seen, when a new scalable sound effect curve is recorded, the pitch (or frequency) and the duration of each pitch (or the duration of each frequency) can be determined based on the scalable sound effect curve.

[0096] In some embodiments, the audio file can be a musical melody. That is, the extension / retraction sound effect can be a musical melody, meaning the extension / retraction sound effect of the telescopic lens 200 can be designed as a musical melody. Specifically, based on the pitch patterns of the music, and in conjunction with the visual effect of the telescopic lens extending, the melody is changed in an orderly manner, transforming the originally monotonous and meaningless motor noise into melodious and varied musical sounds, thus enhancing the pleasantness of the sound.

[0097] Figure 7 A schematic diagram of a scaling sound effect curve is shown, such as... Figure 7 As shown, according to the twelve-tone equal temperament, the frequencies of two notes separated by an octave are twice each other. Dividing an octave into twelve semitones, the frequencies separated by a semitone are twice each other. The relationship between the multiples, and the regular design of the telescopic sound curve, allows the noise of the telescopic lens to display the rhythm and pitch of music, and the lens extension / retraction movement to represent the harmony of a piece of music. Figure 7 The different lengths of the horizontal lines correspond to the duration of different pitches (or frequencies).

[0098] It should be understood that by selecting the driving frequency of the designed telescopic lens 200 as a musical melody and changing the melody in an orderly manner, the noise of the telescopic lens 200 can display the rhythm and tone of the music, turning the noise into a simple musical harmony, thus giving the lens extension / retraction an artistic feel.

[0099] It should be noted that this application may employ pulse width modulation (PWM) technology. PWM technology reduces the concentration of noise energy at a single frequency, avoids abrupt peaks in the 2kHz-5kHz frequency range where the human ear is most sensitive to noise, reduces the level of single-frequency noise in this range, and makes the human ear's perception of noise more pleasant.

[0100] In some embodiments, the audio file can be mechanical acoustic audio. That is, the scaling sound effect can be a low-frequency, stable sound effect, that is, a low-frequency, stable sound effect can be produced by mixing two or more high-frequency noises, with a "mechanical acoustic style" sound effect design.

[0101] It should be understood that the original sound of machinery is characterized by low frequency, stability, and reliability, while the original noise of the telescopic lens 200, due to its high rotation speed, is characterized by high frequency and harshness. This embodiment frequently switches between two high-frequency tones, generating acoustic components related to the switching frequency value. This causes the noise carrier frequency of the telescopic lens 200 to shift downward, increasing the low-frequency noise energy, suppressing high-frequency howling, and giving the telescopic lens 200 a mechanical sound effect similar to that of a classic camera zoom, thus improving the pleasantness of the sound.

[0102] Figure 8 A schematic diagram illustrating the design principle of the scalable sound effect is shown. Figure 8 The horizontal axis represents time, and the vertical axis represents the strength of the sound signal. Figure 8 The frequency of the sound signal shown in (a) is f1. Figure 8 The frequency of the sound signal shown in (b) is f2, where f1 and f2 are both high-frequency tones generated during motor operation. This application generates an acoustic component related to the switching frequency value by frequently switching between the two high-frequency tones, thereby lowering the noise carrier frequency F of the telescopic lens 200, increasing low-frequency noise energy, and suppressing high-frequency howling.

[0103] Figure 9 A schematic diagram of a scaling sound effect curve is shown. Combined with... Figure 9 It can be seen that during the extension or retraction of the telescopic lens 200, the motor can drive the telescopic lens 200 to first run at a frequency of f1 for p1 pulses, then at a frequency of f2 for p1 pulses, then at a frequency of f1 for p1 pulses, and then at a frequency of f2 for p1 pulses, and so on in a cycle. It should be understood that the number of pulses can be the number of cycles of the drive signal, that is, the number of operating cycles or the operating time of the motor at a certain frequency.

[0104] Combination Figure 8 and Figure 9It is known that pulse width modulation (PWM) technology can be used to mix high-frequency sounds into low-frequency sounds. In specific design, the other driving frequency f2 of the motor can be calculated based on the sound modulation frequency F and the noise frequency f1 of the motor. The relationship between the three is: F = |f1 - f2|. Then, the period T of the modulated sound signal can be calculated, i.e., T = 1 / F. Subsequently, the number of pulses p1 can be determined based on T, f1, and f2. In this application, the number of pulses corresponding to frequency f1 and the number of pulses corresponding to frequency f2 can be the same, i.e., T = p1 * (1 / f1 + 1 / f2). In other examples, the number of pulses corresponding to frequency f1 and the number of pulses corresponding to frequency f2 can be different.

[0105] It should be noted that the switching frequency between tones (i.e., the sound modulation frequency F) is much lower than the vibration frequency value corresponding to the tone (i.e., f1 or f2). In other words, a lower frequency sound signal can be produced by mixing two higher frequency sound signals, thereby achieving the purpose of reducing noise.

[0106] In this embodiment, an innovative low-frequency mechanical sound effect curve design is used. The driving frequency of the telescopic lens 200 can be switched at a fixed frequency between two defined frequency points, which lowers the noise carrier frequency of the telescopic lens 200, increases low-frequency noise energy, suppresses high-frequency howling, and gives the telescopic lens a mechanical sound effect similar to that of a "classic camera" zoom, thus improving the tolerance to noise.

[0107] In some embodiments, the audio file can be white noise. That is, the zoom effect can be white noise, meaning that pulse width modulation technology can be used to make the noise of the zoom lens 200 have the characteristics of "white noise".

[0108] It should be understood that when the driving frequency is fixed at a certain value for a certain period of time, or changes periodically according to a fixed pattern, the generated sound energy will be concentrated at certain frequency points, forming spectral peaks. Therefore, by randomly breaking the fixed frequency variation pattern, the spectrum still has a uniform amplitude within a certain frequency range over a short period of time, the spectral peaks are eliminated, and the timbre changes from sharp to soft and husky.

[0109] In the design of the telescopic sound effect curve, random pulse width modulation technology is used to reduce the single-frequency noise level, so that the noise has the characteristics of "white noise". This allows the noise of the telescopic lens 200 to be masked by ambient noise, and makes the human ear feel soothed.

[0110] It should be noted that this application does not limit the use of scalable sound effects. The above is only an exemplary description of scalable sound effects. Other sound effects, such as user-defined sound effects / audio, can also be used in the scalable sound effects in the embodiments of this application.

[0111] S403 determines the target mode of motor operation based on the audio file.

[0112] In this step, controller 101 can determine the target mode of motor operation based on the audio file. This target mode matches the audio file, and can be understood as the speed curve at which the motor operates. Alternatively, controller 101 can determine the motor's operating speed curve based on the telescopic sound effect curve. In other words, the operating speed curve of the motor (such as stepper motor 306) is calculated by controller 301 based on the telescopic sound effect curve.

[0113] In some embodiments, the target mode indicates the motor's drive frequency (or the operating speed curve indicates the motor's drive frequency), which matches the frequency of the scaling effect in the audio file, or the motor's drive frequency matches the index value of the scaling effect's frequency in the audio file. For example, the motor's drive frequency and the frequency of the scaling effect in the audio file can have a corresponding or mapping relationship; the motor's drive frequency and the frequency of the scaling effect in the audio file can be the same or approximately the same. As another example, there can be a functional relationship between the motor's drive frequency and the frequency of the scaling effect in the audio file.

[0114] In some embodiments, the target mode indicates the duration of the motor's drive frequency (or the operating speed curve indicates the duration of the motor's drive frequency), which matches the duration of the frequency of the scaling effect in the audio file. For example, the duration of the motor's drive frequency and the duration of the frequency of the scaling effect in the audio file may have a corresponding or mapping relationship, and the duration of the motor's drive frequency and the duration of the frequency of the scaling effect in the audio file may be the same or approximately the same. As another example, the duration of the motor's drive frequency and the duration of the frequency of the scaling effect in the audio file may have a functional relationship.

[0115] In some embodiments, the target mode indicates the number of operating cycles of the motor's drive frequency (or the operating speed curve indicates the number of operating cycles of the motor's drive frequency), which matches the duration of the frequency of the stretching sound effect in the audio file. For example, the number of operating cycles of the motor's drive frequency and the duration of the frequency of the stretching sound effect in the audio file may have a corresponding or mapping relationship, and the number of operating cycles of the motor's drive frequency and the duration of the frequency of the stretching sound effect in the audio file may be the same or approximately the same. As another example, the number of operating cycles of the motor's drive frequency and the duration of the frequency of the stretching sound effect in the audio file may have a functional relationship. It should be understood that the number of operating cycles here can be understood as the number of pulses in a pulse signal.

[0116] In one example, the target operating mode of the motor (or the motor's operating speed curve) can indicate the motor's drive frequency and the number of operating cycles (or the number of continuous pulses of the pulse signal) corresponding to each drive frequency. Refer to Table 1, which shows... Figure 6 The expansion and contraction sound effect curve corresponds to a table-like representation of the motor's operating speed curve. For example, the motor's operating speed curve can be represented by a mapping table containing curve segment numbers, motor drive frequency, and the number of cycles of the drive signal. This table indicates that the motor operates at a drive frequency F for P cycles. The number of cycles of the drive signal can be the number of continuous pulses; that is, the motor can operate at a drive frequency F for P pulse durations.

[0117] Table 1

[0118] Curve segment number 1 2 3 4 …… 10 Motor drive frequency (F / Hz) F1 F2 F3 F4 …… F10 Number of cycles of the drive signal (P / cycle) P1 P2 P3 P4 …… P10

[0119] As can be seen from Table 1, when the curve segment number is 1 (corresponding to...) Figure 6 When the curve corresponding to the extension sound effect (f1) is in the curve, the motor's driving frequency is F1 (the magnitude of F1 can be equal to the magnitude of f1), and the number of motor cycles at the driving frequency of F1 is P1; when the curve segment number is 2 (corresponding to the extension sound effect curve), the motor's driving frequency is F1 (F1 and f1 can be equal), and the motor's operating cycle number at the driving frequency of F1 is P1. Figure 6 When the extension / retraction sound effect curve corresponding to f2 is shown in the figure, the driving frequency of the motor is F2 (the magnitude of F2 can be equal to the magnitude of f2), and the number of operating cycles (or operating time) of the motor at the driving frequency of F2 is P2, and so on. According to the motor's operating speed curve, the number of operating cycles of the motor at different driving frequencies can be determined, thereby producing a specific extension / retraction sound effect during the extension / retraction of the telescopic lens 200.

[0120] It should be noted that the driving frequency F of the motor, the number of cycles P of the driving signal, and the running time T have the following relationship: T = P * 1 / F. Therefore, the running time T at frequency F can be calculated based on the driving frequency F of the motor and the number of cycles P of the driving signal, and the number of cycles P of the driving signal can also be calculated based on the driving frequency F of the motor and the running time T.

[0121] In one example, the target operating mode of the motor (or the motor's operating speed profile) can indicate the motor's drive frequency and the corresponding operating time for each drive frequency. A tabular representation of the motor's operating speed profile can be found in Table 2, which shows... Figure 6 Another tabular form of the motor's operating speed curve corresponding to the telescopic sound effect curve is, for example, a mapping table containing curve segment numbers, motor drive frequencies, and the duration of operation at each drive frequency. This table indicates the duration the motor operates at drive frequency F for a given time.

[0122] Table 2

[0123] Curve segment number 1 2 3 4 …… 10 Motor drive frequency (F / Hz) F1 F2 F3 F4 …… F10 Runtime (T / s) T1 T2 T3 T4 …… T10

[0124] As can be seen from Table 2, when the curve segment number is 1 (corresponding to...) Figure 6 When the curve corresponding to the extension sound effect (f1) is in the curve, the motor's driving frequency is F1 (the magnitude of F1 can be equal to the magnitude of f1), and the motor's running time at the driving frequency of F1 is T1; when the curve segment number is 2 (corresponding to the extension sound effect curve), the motor's driving frequency is F1 (F1 and the magnitude of f1 can be equal), and the motor's running time at the driving frequency of F1 is T1. Figure 6 When the extension / retraction sound effect curve corresponding to f2 is displayed, the motor's driving frequency is F2 (the magnitude of F2 can be equal to the magnitude of f2), and the motor's running time at the driving frequency F1 is T2, and so on. Based on the motor's running speed curve, the running time of the motor at different driving frequencies can be determined, thus generating specific extension / retraction sound effects during the extension / retraction of the telescopic lens 200.

[0125] In one example, the target operating mode of the motor (or the motor's operating speed curve) can indicate the motor's drive frequency, the number of operating cycles (or the number of continuous pulses of the pulse signal) corresponding to each drive frequency, and the operating duration corresponding to each drive frequency. A tabular representation of the motor's operating speed curve can be found in Table 3, which shows... Figure 6 Another tabular form of the motor's operating speed curve corresponding to the telescopic sound effect curve is, for example, the motor's operating speed curve can be represented by a mapping table containing the curve segment number, motor drive frequency, number of cycles of the drive signal, and running time of the drive frequency. This table indicates that the motor runs for P cycles at drive frequency F and for T duration.

[0126] Table 3

[0127] Curve segment number 1 2 3 4 …… 10 Motor drive frequency (F / Hz) F1 F2 F3 F4 …… F10 Number of cycles of the drive signal (P / cycle) P1 P2 P3 P4 …… P10 Runtime (T / s) T1 T2 T3 T4 …… T10

[0128] As can be seen from Table 1, when the curve segment number is 1 (corresponding to...) Figure 6 When the curve corresponding to f1 in the diagram is 2, the motor's driving frequency is F1 (the magnitude of F1 can be equal to the magnitude of f1), the number of motor cycles at the driving frequency of F1 is P1, and the motor's running time at the driving frequency of F1 is T1 = P1 * 1 / F1; when the curve segment number is 2 (corresponding to...), the motor's driving frequency is F1 (the magnitude of F1 can be equal to the magnitude of f1 ... running frequency is F1 (the number of running cycles at the driving frequency of F1 is P1), and the motor's running time at the driving frequency of F1 is T1 = P1 * 1 / F1; when the curve segment number is 2 (corresponding to...), the motor's driving frequency is F1 (the magnitude of Figure 6 When the extension / retraction sound effect curve corresponding to f2 is displayed, the motor's driving frequency is F2 (the magnitude of F2 can be equal to the magnitude of f2). The number of operating cycles (or operating time) of the motor at the driving frequency of F2 is P2, and the operating time of the motor at the driving frequency of F1 is T2 = P2 * 1 / F2, and so on. Based on the motor's operating speed curve, the number of operating cycles and / or operating time of the motor at different driving frequencies can be determined, thereby producing specific extension / retraction sound effects during the extension / retraction of the telescopic lens 200.

[0129] It should be noted that, in order to save memory space occupied by the motor drive frequency F, in some embodiments, the motor drive frequency F in Tables 1 to 3 above is not a specific frequency value, but is replaced by the index value (e.g., 0-255) corresponding to the drive frequency. There is a one-to-one correspondence between the motor drive frequency and the drive frequency index value, and different index values ​​correspond to different drive frequencies (i.e., drive speeds). Taking Table 1 as an example, in some embodiments, Table 1 can be replaced by Table 4, that is, the motor drive frequency is replaced by the drive frequency index value, i.e., inedx 1 corresponds to P1, inedx 2 corresponds to P2, ..., inedx 10 corresponds to P10.

[0130] Table 4

[0131] Curve segment number 1 2 3 4 …… 10 Index value of motor drive frequency index 1 index 2 index 3 index 4 …… index 10 Number of cycles of the drive signal (P / cycle) P1 P2 P3 P4 …… P10

[0132] S404, drive the motor to operate in the target manner.

[0133] For example, controller 101 can send instructions to driver 109 to drive motor 111 to operate in a target manner (or according to the motor speed curve).

[0134] In some examples, the driver 109 can drive the motor 111 to move the telescopic lens 200 in a first target mode, wherein the first target mode indicates that the driving frequency of the motor 111 is a first frequency, the number of operating cycles of the first frequency is a first number of cycles, and / or the operating time of the first frequency is a first duration; after the first target mode is completed, the driver 109 can drive the motor 111 to move the telescopic lens 200 in a second target mode, wherein the second target mode indicates that the driving frequency of the motor 111 is a second frequency, the number of operating cycles of the second frequency is a second number of cycles, and / or the operating time of the second frequency is a second duration.

[0135] For example, the controller 101 may send a first instruction to the driver 109, which may include information from the operating speed curve tables shown in Tables 1 to 4 above. Further, the driver 109 may send a first signal to the motor 111, which may carry information from the operating speed curve tables shown in Tables 1 to 4 above, thereby causing the motor to drive the telescopic lens 200 to move according to the first signal.

[0136] In some examples, controller 101 may send a first sub-instruction to driver 109, which instructs motor 111 to drive at a first frequency, for a first number of cycles at the first frequency, and / or for a first duration of operation at the first frequency. Driver 109 may send a first sub-signal to motor 111, which may carry information from the first sub-instruction, thereby causing the motor to drive the telescopic lens 200 to move according to the first sub-signal. Subsequently, controller 101 may send a second sub-instruction to driver 109, which instructs motor 111 to drive at a second frequency, for a second number of cycles at the second frequency, and / or for a second duration of operation at the second frequency. Driver 109 may send a second sub-signal to motor 111, which may carry information from the second sub-instruction, thereby causing the motor to drive the telescopic lens 200 to move according to the second sub-signal.

[0137] Figure 10 This is a schematic flowchart illustrating the operation of a motor driven by a driver according to an embodiment of this application. Figure 10 As shown, the operation of the driver 109 driving the motor 111 may specifically include the following steps:

[0138] S501, obtain the operating speed curve of motor 111. That is, obtain the target operating mode of motor 111.

[0139] For example, in this step, the controller 101 may sequentially send the motor drive frequency Fi and the number of continuous pulses Pi from any of the items in Tables 1 to 4 to the driver 109 (such as a stepper motor driver), thereby enabling the driver 109 (such as a stepper motor driver) to obtain the motor's operating speed curve (or target mode).

[0140] S502, set the loop variable i = 1.

[0141] For example, as shown in Table 1, the initial loop variable can be set to 1, that is, the motor drive frequency F1 and the corresponding number of drive signal cycles P1 are sent starting from curve segment number 1.

[0142] S503, determine whether the loop variable i is less than or equal to the maximum curve segment number.

[0143] For example, as shown in Table 1, the maximum curve segment number can be 10. When i is less than or equal to 10, S504 can be executed; when i is greater than 10, S506 can be executed, that is, the motor 111 finishes running and the telescopic lens 200 completes the extension / retraction action.

[0144] S504, the driver sends Pi drive signals at a drive frequency of Fi to drive the motor.

[0145] For example, the driver chip in driver 109 (such as a stepper motor driver) sends a drive signal (such as a pulse width modulation (PWM) signal) for Pi full cycles at a drive frequency Fi to drive motor 111 to operate.

[0146] After the driver 109 (such as a stepper motor driver) completes the PWM signal transmission for curve segment number 1, it can execute S505, which sets the loop variable to i = i + 1. This means the controller 301 then sends the motor 111 driving frequency Fi + 1 and the number of continuous pulses Pi + 1 corresponding to the next curve segment number (i.e., curve segment number 2). The driver 109 (such as a stepper motor driver) drives the stepper motor according to the motor driving frequency and the number of continuous pulses. This cycle repeats until all motor speed curve segments have been completed.

[0147] Understandably, the driver 109 (such as a stepper motor driver) can drive the motor 111 to operate in a targeted manner, so that the motor 111 can drive the telescopic lens 200 to telescopically move in sync with telescopic sound effects.

[0148] For example, motor 111 drives telescopic lens 200 to extend / retract. As motor 111 operates according to the speed curve designed in the telescopic sound effect curve, the noise of the telescopic lens 200 extending / retracting is edited into a rhythmic sound effect that matches the visual effect of extending / retracting. This not only solves the stepper motor noise problem but also adds a sense of ceremony to the telescopic lens.

[0149] In this embodiment, the noise of the telescopic lens 200 is edited into a rhythmic telescopic sound effect by designing a telescopic sound curve. The telescopic sound effect uses professional mechanical sound instead of a speaker, which does not incur additional area or power consumption overhead, and does not require the addition of new components. This not only enhances the ceremonial feel of the telescopic lens but also solves the problem of suppressing high-frequency harsh noise.

[0150] Figure 11 This is a structural schematic diagram of a noise reduction device for a telescopic lens provided in an embodiment of this application.

[0151] like Figure 11 As shown, the noise reduction device 600 for the telescopic lens may include a first acquisition module 610, a second acquisition module 620, and a drive module 640. The first acquisition module 610 is used to acquire the telescopic command of the telescopic lens 200; the second acquisition module 620 is used to acquire the audio file; and the drive module 640 is used to drive the motor to move the telescopic lens 200 in a target manner, the target manner being matched with the audio file.

[0152] Optionally, the noise reduction device 600 for the telescopic lens may also include a processing module 630, which is used to determine the target mode of motor operation based on the audio file, and the motor is used to drive the telescopic lens movement.

[0153] In some examples, the audio file indicates the frequency of the scaling sound effect, the target mode indicates the motor drive frequency, and the frequency of the scaling sound effect matches the motor drive frequency.

[0154] In some examples, the audio file indicates the index value of the frequency of the stretching sound effect, the target mode indicates the drive frequency of the motor, and the index value of the frequency of the stretching sound effect matches the drive frequency of the motor.

[0155] In some examples, the audio file indicates the duration of the stretching sound effect's frequency, the target mode indicates the duration of the motor's drive frequency, and the duration of the stretching sound effect's frequency matches the duration of the motor's drive frequency.

[0156] In some examples, the audio file indicates the duration of the stretching sound effect frequency, the target mode indicates the number of cycles of the motor's drive frequency, and the duration of the stretching sound effect frequency matches the number of cycles of the motor's drive frequency.

[0157] In some examples, the drive module 640 is further configured to: drive the motor to move the telescopic lens in a first target manner, wherein the first target manner indicates that the frequency of the motor drive is a first frequency, the number of operating cycles of the first frequency is a first number of cycles and / or the operating time of the first frequency is a first duration; and drive the motor to move the telescopic lens in a second target manner, wherein the second target manner indicates that the frequency of the motor drive is a second frequency, the number of operating cycles of the second frequency is a second number of cycles and / or the operating time of the second frequency is a second duration.

[0158] In some examples, the telescopic commands include commands to extend the telescopic lens and commands to retract the telescopic lens.

[0159] In some examples, the audio file is musical, mechanical, white noise, or user-defined audio.

[0160] Figure 12 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.

[0161] like Figure 12As shown, the electronic device 700 may include a controller 701, a memory 702, an input module 703, a motor driver 705 (such as a stepper motor driver), a motor 706 (such as a stepper motor), and a telescopic lens 200, among other hardware structures. The controller 701 may be the controller 101 described above, such as a CPU or MCU; the memory 702 may be the memory 106 described above, storing the sound effect curve library 110 of the telescopic lens 200; for example, the memory 702 may be ROM, RAM, or flash memory; the input module 703 may be the input module 108 described above, such as a touchscreen, keyboard, or motion input; the motor driver 705 may include a motor driver chip (such as a stepper motor driver chip), which can send PWM signals to drive the motor 706 to move according to the controller signal; the movement of the motor 706 can drive the telescopic lens 200 to extend and retract. It should be understood that the motor 706 in this application may be a stepper motor, but in some other embodiments, other types of motors may also be used, and this is not limited.

[0162] Figure 12 The controller 701 is electrically connected to the input module 703, the memory 702, and the motor driver 705. The motor driver 705 is electrically connected to the motor 706. The motor driver 705 controls the motor 706 to run according to the instructions of the controller 701. The motor 706 drives the telescopic lens 200. The controller 701 can select the telescopic sound effect curve of the telescopic lens 200 from the sound effect curve library 110 in the memory 702 according to the input signal from the input module 703.

[0163] Optionally, the electronic device 700 may further include a communication module 704, which can be the aforementioned communication module 107, capable of wireless communication, specifically including Wi-Fi communication, Bluetooth communication, 2G / 7G / 4G / 5G communication, etc. The memory 702 can be electrically connected to the communication module 704 for updating the sound effect curve library 110.

[0164] In some examples, input module 703 is used to obtain the telescopic command of telescopic lens 200; controller 701 is used to obtain audio file from memory 702; controller 701 is also used to determine the target mode of operation of motor 706 according to audio file; motor 706 is used to drive telescopic lens 200 to move according to target mode.

[0165] In some examples, the audio file indicates the frequency of the stretching sound effect, the target mode indicates the drive frequency of the motor, and the controller 701 is also used to determine the drive frequency of the motor based on the frequency of the stretching sound effect.

[0166] In some examples, the audio file indicates the index value of the frequency of the stretching sound effect, the target mode indicates the drive frequency of the motor, and the controller 701 is also used to determine the drive frequency of the motor based on the index value of the frequency of the stretching sound effect.

[0167] In some examples, the audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the runtime of the motor's drive frequency, and the controller 701 is also used to determine the runtime of the motor's drive frequency based on the duration of the frequency of the stretching sound effect.

[0168] In some examples, the audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the number of operating cycles of the motor's drive frequency, and the controller 701 is also used to determine the number of operating cycles of the motor's drive frequency based on the duration of the frequency of the stretching sound effect.

[0169] In some examples, controller 701 is also used to send a first instruction to motor driver 705, the first instruction indicating a target mode; motor driver 705 is used to send a first signal to motor 706 according to the first instruction; motor 706 is used to drive telescopic lens 200 to move according to the first signal.

[0170] In some examples, the telescopic commands include commands to extend the telescopic lens and commands to retract the telescopic lens.

[0171] In some examples, the audio file is musical, mechanical, white noise, or user-defined audio.

[0172] This application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the noise reduction method in the above embodiments.

[0173] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the noise reduction method described in the above embodiments.

[0174] Furthermore, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory. The memory stores computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the chip to perform the noise reduction methods in the above-described method embodiments.

[0175] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0176] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0177] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0178] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0179] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0180] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0181] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0182] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A noise reduction method for a telescopic lens, characterized in that, include: Obtain the telescopic command for the telescopic lens, which is driven by a motor; Get the audio file; The motor is driven to move the telescopic lens in a targeted manner, the targeted manner being matched with the audio file.

2. The noise reduction method according to claim 1, characterized in that, The audio file indicates the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the frequency of the stretching sound effect matches the driving frequency of the motor.

3. The noise reduction method according to claim 1, characterized in that, The audio file indicates the index value of the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the index value of the frequency of the stretching sound effect matches the driving frequency of the motor.

4. The noise reduction method according to any one of claims 1 to 3, characterized in that, The audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the duration of the motor's drive frequency, and the duration of the frequency of the stretching sound effect matches the duration of the motor's drive frequency.

5. The noise reduction method according to any one of claims 1 to 4, characterized in that, The audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the number of operating cycles of the motor's drive frequency, and the duration of the frequency of the stretching sound effect matches the number of operating cycles of the motor's drive frequency.

6. The noise reduction method according to any one of claims 1 to 5, characterized in that, The method of driving the motor to move the telescopic lens in a targeted manner includes: The motor is driven to move the telescopic lens in a first target mode, wherein the first target mode indicates that the driving frequency of the motor is a first frequency, the number of operating cycles of the first frequency is a first number of cycles, and / or the operating time of the first frequency is a first duration. The motor is driven to move the telescopic lens in a second target mode, wherein the second target mode indicates that the driving frequency of the motor is a second frequency, the number of operating cycles of the second frequency is a second number of cycles, and / or the operating duration of the second frequency is a second duration.

7. The noise reduction method according to any one of claims 1 to 6, characterized in that, The telescopic commands include commands to extend the telescopic lens and commands to retract the telescopic lens.

8. The noise reduction method according to any one of claims 1 to 7, characterized in that, The audio file can be musical, mechanical, white noise, or user-defined audio.

9. An electronic device, characterized in that, include: The input module is used to obtain the telescopic commands of the telescopic lens; The controller is used to retrieve audio files from memory; The controller is also used to determine the target mode of motor operation based on the audio file; The motor is used to drive the telescopic lens to move according to the target method.

10. The electronic device according to claim 9, characterized in that, The audio file indicates the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the controller is further configured to determine the driving frequency of the motor based on the frequency of the stretching sound effect.

11. The electronic device according to claim 9, characterized in that, The audio file indicates the index value of the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the controller is further configured to determine the driving frequency of the motor based on the index value of the frequency of the stretching sound effect.

12. The electronic device according to any one of claims 9 to 11, characterized in that, The audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the duration of the driving frequency of the motor, and the controller is further configured to determine the duration of the driving frequency of the motor based on the duration of the frequency of the stretching sound effect.

13. The electronic device according to any one of claims 9 to 12, characterized in that, The audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the number of operating cycles of the motor's drive frequency, and the controller is further configured to determine the number of operating cycles of the motor's drive frequency based on the duration of the frequency of the stretching sound effect.

14. The electronic device according to any one of claims 9 to 13, characterized in that, The controller is further configured to send a first instruction to the motor driver, the first instruction indicating the target mode; The motor driver is used to send a first signal to the motor according to the first instruction; The motor is used to drive the telescopic lens to move according to the first signal.

15. The electronic device according to any one of claims 9 to 14, characterized in that, The telescopic commands include commands to extend the telescopic lens and commands to retract the telescopic lens.

16. The electronic device according to any one of claims 9 to 14, characterized in that, The audio file can be musical, mechanical, white noise, or user-defined audio.

17. A noise reduction device for a telescopic lens, characterized in that, include: The first acquisition module is used to acquire the telescopic command of the telescopic lens; The second acquisition module is used to acquire audio files; A drive module is used to drive the motor to move the telescopic lens in a targeted manner, wherein the targeted manner matches the audio file.

18. The noise reduction device according to claim 17, characterized in that, The audio file indicates the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the frequency of the stretching sound effect matches the driving frequency of the motor.

19. The noise reduction method according to claim 17, characterized in that, The audio file indicates the index value of the frequency of the stretching sound effect, the target mode indicates the driving frequency of the motor, and the index value of the frequency of the stretching sound effect matches the driving frequency of the motor.

20. The noise reduction device according to any one of claims 17 to 19, characterized in that, The audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the duration of the motor's drive frequency, and the duration of the frequency of the stretching sound effect matches the duration of the motor's drive frequency.

21. The noise reduction device according to any one of claims 17 to 20, characterized in that, The audio file indicates the duration of the frequency of the stretching sound effect, the target mode indicates the number of operating cycles of the motor's drive frequency, and the duration of the frequency of the stretching sound effect matches the number of operating cycles of the motor's drive frequency.

22. The noise reduction device according to any one of claims 17 to 21, characterized in that, The drive module is also used for: The motor is driven to move the telescopic lens in a first target mode, wherein the first target mode indicates that the frequency of the motor drive is a first frequency, the number of operating cycles of the first frequency is a first number of cycles, and / or the operating time of the first frequency is a first duration. The motor is driven to move the telescopic lens in a second target mode, wherein the second target mode indicates that the frequency of the motor drive is a second frequency, the number of operating cycles of the second frequency is a second number of cycles, and / or the operating duration of the second frequency is a second duration.

23. The noise reduction device according to any one of claims 17 to 22, characterized in that, The telescopic commands include commands to extend the telescopic lens and commands to retract the telescopic lens.

24. The noise reduction device according to any one of claims 17 to 23, characterized in that, The audio file can be musical, mechanical, white noise, or user-defined audio.

25. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a computer, causes the computer to perform the method as described in any one of claims 1 to 8.

26. A computer program product containing instructions, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 8.

27. A chip, characterized in that, The device includes a processor and a memory, wherein the processor is configured to read instructions stored in the memory, and when the processor executes the instructions, causes the chip to implement the method of any one of claims 1 to 8.