Vibration intensity control method and device, electronic device, and storage medium

By obtaining audio characteristic data and driving the motor to adjust the vibration intensity, the problem of fixed vibration effect of linear motor is solved, improving the user experience.

CN112114674BActive Publication Date: 2025-08-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011051029.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-29
Publication Date
2025-08-26
Estimated Expiration
2040-09-29

AI Technical Summary

Technical Problem

In the prior art, the vibration effect of the linear motor is fixed, which cannot meet the usage needs of different users in different scenarios, affecting the user experience.

Method used

By obtaining the audio characteristic data of the currently played audio, obtain the target control waveform of the motor according to the corresponding relationship between the audio characteristic data and the preset, and drive the motor to adjust the vibration intensity to match the audio characteristics.

Benefits of technology

It realizes dynamic adjustment of motor vibration intensity, improving the user's tactile feedback experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112114674B_ABST
    Figure CN112114674B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a vibration intensity control method and device, electronic device, and storage medium. The method includes: obtaining audio feature data of the currently playing audio; obtaining a target control waveform within the current detection cycle of the motor based on the correspondence between the audio feature data and preset audio feature data and vibration intensity; driving the motor based on the target control waveform to adjust the vibration intensity of the motor to the target vibration intensity corresponding to the target control waveform. In this embodiment, the vibration intensity of the motor can change with the currently playing audio, so that the user can feel different tactile feedback, which is conducive to improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of control technology, and in particular to a vibration intensity control method and device, an electronic device, and a storage medium. Background Art

[0002] Currently, many electronic devices are equipped with linear motors. When a user triggers the electronic device, the linear motor will be triggered to vibrate at the same time, which will give the user a vibration feedback and improve the user's experience of using the electronic device.

[0003] However, in actual applications, the vibration effect of the linear motor is fixed, which cannot meet the usage needs of some users in some scenarios and is not conducive to improving the user experience. Summary of the Invention

[0004] The present disclosure provides a vibration intensity control method and device, an electronic device, and a storage medium to address the deficiencies of related technologies.

[0005] According to a first aspect of an embodiment of the present disclosure, a vibration intensity control method is provided, which is applicable to an electronic device provided with a motor, and the method includes:

[0006] Get the audio feature data of the currently playing audio;

[0007] Obtaining a target control waveform within a current detection cycle of the motor based on the audio feature data and a preset correspondence between the audio feature data and the vibration intensity;

[0008] The motor is driven according to the target control waveform to adjust the vibration intensity of the motor to a target vibration intensity corresponding to the target control waveform.

[0009] In one embodiment, the audio feature data includes the frequency and amplitude of the audio.

[0010] In one embodiment, the audio feature data is obtained by at least one of the following methods:

[0011] (1) When the electronic device includes an encoder for decoding and encoding audio, sampling an audio signal from an output end of the encoder and obtaining audio feature data of the audio signal;

[0012] (2) When the electronic device includes an audio acquisition device, an audio signal is sampled from an output end of the audio acquisition device, and audio feature data of the audio signal is obtained.

[0013] In one embodiment, the correspondence between audio feature data and vibration intensity is obtained by the following steps:

[0014] Obtaining the audio frequency range of the audio sample and the operating frequency range of the motor; the operating frequency range refers to the frequency range formed by the maximum frequency and minimum frequency of the motor vibrator when it is working, and each operating frequency corresponds to a control waveform;

[0015] Establishing a correspondence between audio frequencies within the audio frequency range and operating frequencies within the operating frequency range, and obtaining a first control waveform corresponding to the operating frequency for each audio frequency;

[0016] Obtaining an audio volume range of the audio sample and a voltage amplitude range of the motor, where the voltage amplitude range refers to a voltage range formed by maximum voltage amplitudes of multiple control waveforms corresponding to the motor, each control waveform corresponding to a maximum vibration amplitude;

[0017] Establishing a correspondence between the audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range, thereby obtaining a correspondence between the audio volume and the maximum voltage amplitude;

[0018] For each first control waveform, the maximum voltage amplitude of the first control waveform is adjusted based on the correspondence between the audio volume and the maximum voltage amplitude, to obtain multiple second control waveforms corresponding to the audio volume range, and all second control waveforms constitute the correspondence between the audio feature data and the vibration intensity.

[0019] According to a second aspect of an embodiment of the present disclosure, there is provided a vibration intensity control device, adapted for an electronic device provided with a motor, the device comprising:

[0020] The audio feature acquisition module is used to obtain the audio feature data of the currently playing audio;

[0021] a target waveform acquisition module, configured to acquire a target control waveform within a current detection cycle of the motor based on the audio feature data and a predetermined correspondence between the audio feature data and the vibration intensity;

[0022] The vibration intensity adjustment module is configured to drive the motor according to the target control waveform to adjust the vibration intensity of the motor to a target vibration intensity corresponding to the target control waveform.

[0023] In one embodiment, the audio feature data includes the frequency and amplitude of the audio.

[0024] In one embodiment, the audio feature acquisition module acquires the audio feature in at least one of the following ways:

[0025] (1) When the electronic device includes an encoder for decoding and encoding audio, sampling an audio signal from an output end of the encoder and obtaining audio feature data of the audio signal;

[0026] (2) When the electronic device includes an audio acquisition device, an audio signal is sampled from an output end of the audio acquisition device, and audio feature data of the audio signal is obtained.

[0027] In one embodiment, the apparatus further includes a corresponding relationship acquisition module, and the corresponding relationship acquisition module includes:

[0028] An operating frequency acquisition unit, configured to acquire an audio frequency range of the audio sample and an operating frequency range of the motor; the operating frequency range refers to a frequency range formed by a maximum frequency and a minimum frequency of the motor vibrator during operation, and each operating frequency corresponds to a control waveform;

[0029] a first relationship establishing unit, configured to establish a correspondence between audio frequencies within the audio frequency range and operating frequencies within the operating frequency range, and obtain a first control waveform corresponding to the operating frequency of each audio frequency;

[0030] a voltage amplitude acquisition unit, configured to acquire an audio volume range of the audio sample and a voltage amplitude range of the motor, wherein the voltage amplitude range refers to a voltage range formed by the maximum voltage amplitudes of multiple control waveforms corresponding to the motor, each control waveform corresponding to a maximum vibration amplitude;

[0031] a second relationship obtaining unit, configured to establish a corresponding relationship between the audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range, to obtain a corresponding relationship between the audio volume and the maximum voltage amplitude;

[0032] The correspondence acquisition unit is used to adjust the maximum voltage amplitude of each first control waveform based on the correspondence between the audio volume and the maximum voltage amplitude, thereby obtaining multiple second control waveforms corresponding to the audio volume range, wherein all second control waveforms constitute a correspondence between the audio feature data and the vibration intensity.

[0033] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0034] processor;

[0035] a memory for storing a computer program executable by the processor;

[0036] The processor is configured to execute the computer program in the memory to implement the steps of the above method.

[0037] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, which can implement the steps of the above-mentioned method when an executable computer program in the storage medium is executed by a processor.

[0038] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0039] As can be seen from the above embodiments, the disclosed embodiments can obtain audio feature data of the currently playing audio; then, based on the audio feature data and the preset correspondence between audio feature data and vibration intensity, the target control waveform for the motor within the current detection cycle is obtained; then, the motor is driven according to the target control waveform to adjust the motor's vibration intensity to the target vibration intensity corresponding to the target control waveform. In this way, the vibration intensity of the motor in this embodiment can change in accordance with the currently playing audio, thereby providing the user with different tactile feedback and improving the user experience.

[0040] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0042] Figure 1 The figure is a flow chart showing a vibration intensity control method according to an exemplary embodiment.

[0043] Figure 2 The present invention is a flowchart showing a method for obtaining a correspondence between audio feature data and vibration intensity according to an exemplary embodiment.

[0044] Figure 3 is a schematic diagram showing a control waveform according to an exemplary embodiment.

[0045] Figure 4 The figure is a schematic diagram showing a first control waveform of an audio frequency corresponding to an operating frequency according to an exemplary embodiment.

[0046] Figure 5 The figure is a schematic diagram showing a first control waveform of an audio volume sub-band corresponding to an operating frequency sub-band according to an exemplary embodiment.

[0047] Figure 6 is a schematic diagram showing a second control waveform according to an exemplary embodiment.

[0048] Figures 7 and 8 is a block diagram of a vibration intensity control device according to an exemplary embodiment.

[0049] Figure 9 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0050] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, like numbers in different figures represent like or similar elements unless otherwise indicated. The exemplary embodiments described below are not intended to represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0051] The present disclosure provides a vibration intensity control method, which can be applied to electronic devices equipped with motors, such as smart phones, tablet computers, and smart headphones. Figure 1 1 is a flow chart showing a vibration intensity control method according to an exemplary embodiment, including steps 11 to 13:

[0052] In step 11, audio feature data of the currently playing audio is obtained.

[0053] In this embodiment, the processor in the electronic device can obtain audio feature data of the currently playing audio, and the audio feature data may include audio frequency and audio amplitude. The acquisition method may include:

[0054] In the first approach, the audio is played by an electronic device, which may include an encoder for decoding and encoding the audio. The processor can send the audio data to the encoder, which processes the audio data, such as converting the audio protocol, and then outputs the corresponding audio data.

[0055] The processor can sample the audio signal from the output end of the encoder according to a preset detection cycle and obtain the audio data characteristics of the audio signal in the current detection cycle. For example, the processor can perform Fourier transform on the audio signal to obtain the frequency of the audio signal. Taking into account that the audio signal in each detection cycle may be composed of audio signals of multiple frequencies, in this scenario, the processor can use the audio frequency corresponding to the dominant audio signal as the audio frequency of the current detection cycle, where dominance means that the energy of the audio signal of a certain frequency accounts for a proportion of the energy of the audio signal of the current detection cycle that exceeds a preset proportion (such as 50%).

[0056] Method 2: The currently playing audio is played by an audio device outside the electronic device. In this case, the electronic device may include an audio acquisition device, such as a microphone, for acquiring the collected audio signal. The audio acquisition device can sample the audio signal according to a preset detection period. Then, the processor performs Fourier transform on the audio signal to obtain the frequency of the audio signal. Taking into account that the audio signal in each detection period may be composed of audio signals of multiple frequencies, in this scenario, the processor can use the audio frequency corresponding to the dominant audio signal as the audio frequency of the current detection period, where dominance means that the energy of the audio signal of a certain frequency accounts for a proportion of the energy of the audio signal of the current detection period that exceeds a preset proportion (such as 50%).

[0057] In step 12, a target control waveform of the motor in the current detection cycle is obtained according to the audio feature data and a preset correspondence between the audio feature data and the vibration intensity.

[0058] In this embodiment, the electronic device may store a preset correspondence between audio feature data and vibration intensity. This correspondence includes multiple control waveforms, each corresponding to a vibration intensity. Thus, the processor can query this correspondence based on the audio feature data to obtain the control waveform corresponding to the audio feature data, thereby obtaining the target control waveform. In other words, it can obtain the vibration intensity of the motor corresponding to the audio feature data.

[0059] In this embodiment, the corresponding relationship between the above audio feature data and vibration intensity can be obtained in the following way, see Figure 2 ,include:

[0060] In step 21, the processor may obtain an audio sample and process the audio sample in a manner similar to step 11 to obtain an audio frequency range of the audio sample. The audio frequency range refers to a frequency range formed by the minimum and maximum frequencies of the audio sample, for example, 20 Hz to 20 kHz.

[0061] At the same time, the processor can obtain the operating frequency range of the motor. The operating frequency range refers to the frequency range formed by the maximum and minimum frequencies that the vibrator in the motor can reach when working, such as 100Hz to 300Hz. In actual applications, each operating frequency corresponds to a control waveform, and each control waveform can include a certain number of sine waves, the effect is as follows Figure 3 As shown, the number of sine waves is positively correlated with the vibration frequency of the motor.

[0062] In step 22, the processor may establish a correspondence between the audio frequency range and the operating frequency range, and obtain a first control waveform corresponding to the operating frequency of each audio frequency.

[0063] In one example, the correspondence between the audio frequency and the operating frequency can be a frequency-to-frequency correspondence, that is, each audio frequency within the audio frequency range and each operating frequency within the operating frequency range are in a one-to-one correspondence, and the effect is as follows: Figure 4 In this way, in this embodiment, the vibration frequency of the motor follows the precise change of the audio frequency, thereby achieving precise control of the motor operating frequency.

[0064] In another example, considering that the change in vibration intensity caused by adjusting the control waveform within a certain frequency range will not be perceived by the user, for example, when the motor operates at 100Hz and 110Hz, the user cannot feel the change in vibration intensity. Therefore, the processor can establish a one-to-one correspondence between each sub-band in the audio frequency range and each sub-band in the operating frequency range, and the effect is as follows: Figure 5 As shown. For example, if the audio frequency range is divided into 10 sub-bands and the operating frequency range is divided into 10 sub-bands, the first sub-band in the audio frequency range (20-2kHz) corresponds to the first sub-band in the operating frequency range (20-40Hz). In this way, in this embodiment, the motor's vibration frequency can substantially follow the audio frequency, and the user can perceive that the vibration intensity changes continuously with the audio frequency, which can reduce the number of first control waveforms.

[0065] In step 23, the processor may obtain the audio volume range of the audio sample, wherein the audio volume range refers to the audio range formed by the minimum amplitude and the maximum amplitude of the audio signal in the audio sample, and the larger the volume, the larger the amplitude of the corresponding audio signal.

[0066] At the same time, the processor can obtain the voltage amplitude range of the motor. The voltage amplitude range refers to the voltage range formed by the maximum voltage amplitudes of multiple control waveforms corresponding to the motor, and each control waveform corresponds to a maximum vibration amplitude. In other words, each control waveform corresponds to a maximum control voltage, that is, a maximum voltage amplitude, and multiple control waveforms correspond to multiple maximum voltage amplitudes respectively. The maximum and minimum values ​​obtained after sorting these maximum voltage amplitudes form the voltage amplitude range, such as Figure 6 The maximum voltage amplitudes of waveforms C1, C2, and C3 shown in FIG are V1, V2, and V3, respectively.

[0067] In step 24 , the processor may establish a one-to-one correspondence between each audio volume within the audio volume range and each maximum voltage amplitude within the voltage amplitude range, thereby obtaining a correspondence between the audio volume and the maximum voltage amplitude.

[0068] In one example, the correspondence between audio volume and maximum voltage amplitude can be one volume value for each maximum voltage amplitude, i.e., there is a one-to-one correspondence between each audio volume within the audio volume range and each maximum voltage amplitude within the voltage amplitude range. In this way, in this embodiment, the motor vibration amplitude precisely follows the audio volume, achieving precise control of the motor vibration amplitude.

[0069] In another example, considering that changes in the motor's vibration amplitude within a certain range are not perceptible to the user, for example, when the motor is operating at 2.5V and 2.6V, the user cannot sense the change in vibration amplitude. Therefore, the processor can establish a one-to-one correspondence between each sub-volume segment within the audio volume range and each sub-amplitude segment within the voltage amplitude range. In this way, in this embodiment, the motor's vibration amplitude can substantially track changes in the audio volume, and the user can perceive that the vibration amplitude changes continuously with the audio volume, thereby reducing the number of first control waveforms.

[0070] In step 25, for each first control waveform, the processor can adjust the maximum voltage amplitude of the first control waveform based on the correspondence between the audio volume and the maximum voltage amplitude, thereby obtaining a second control waveform corresponding to each audio volume in the audio volume range, and all second control waveforms constitute the correspondence between the audio feature data and the vibration intensity.

[0071] In other words, step 23 only obtains the first control waveforms at different frequencies, and step 25 gives each first control waveform a different maximum voltage amplitude, thereby obtaining several second control waveforms, each of which has a different maximum voltage amplitude. The effect is as follows: Figure 6 As shown, Figure 6 Figure 1 shows three second control waveforms: waveform C1, waveform C2, and waveform C3. Waveforms C1, C2, and C3 have the same frequency, while their maximum voltage amplitudes are V1, V2, and V3, respectively. In other words, the corresponding relationship includes several second control waveforms indexed by audio volume and audio frequency.

[0072] In step 13 , the motor is driven according to the target control waveform to adjust the vibration intensity of the motor to the target vibration intensity corresponding to the target control waveform.

[0073] In this embodiment, the processor can drive the motor according to the above-mentioned target control waveform, or send the above-mentioned target control waveform to the driving circuit of the motor, and the driving circuit drives the motor according to the target control waveform, so that the vibration intensity of the motor can be adjusted to the target vibration intensity corresponding to the target control waveform, for example 2.5G, where G represents the acceleration of gravity.

[0074] At this point, the disclosed embodiment can obtain audio feature data for the currently playing audio. Then, based on the audio feature data and the preset correspondence between audio feature data and vibration intensity, the target control waveform for the motor within the current detection cycle is obtained. The motor is then driven according to the target control waveform to adjust the motor's vibration intensity to the target vibration intensity corresponding to the target control waveform. In this way, the motor's vibration intensity in this embodiment can change in accordance with the currently playing audio, allowing the user to experience different tactile feedback, which is beneficial for improving the user experience.

[0075] Based on the above-mentioned vibration intensity control method, the present disclosure also provides a vibration intensity control device, see Figure 7 , the device comprises:

[0076] The audio feature acquisition module 71 is used to obtain audio feature data of the currently playing audio;

[0077] a target waveform acquisition module 72 for acquiring a target control waveform in a current detection cycle of the motor based on the audio feature data and a predetermined correspondence between the audio feature data and the vibration intensity;

[0078] The vibration intensity adjustment module 73 is configured to drive the motor according to the target control waveform to adjust the vibration intensity of the motor to a target vibration intensity corresponding to the target control waveform.

[0079] In one embodiment, the audio feature data includes the frequency and amplitude of the audio.

[0080] In one embodiment, the audio feature acquisition module acquires the audio feature in at least one of the following ways:

[0081] (1) When the electronic device includes an encoder for decoding and encoding audio, sampling an audio signal from an output end of the encoder and obtaining audio feature data of the audio signal;

[0082] (2) When the electronic device includes an audio acquisition device, an audio signal is sampled from an output end of the audio acquisition device, and audio feature data of the audio signal is obtained.

[0083] In one embodiment, see Figure 8 The device further includes a corresponding relationship acquisition module, and the corresponding relationship acquisition module includes:

[0084] An operating frequency acquisition unit 81 is configured to acquire an audio frequency range of the audio sample and an operating frequency range of the motor; the operating frequency range refers to a frequency range formed by the maximum and minimum frequencies of the motor's vibrator during operation, and each operating frequency corresponds to a control waveform;

[0085] A first relationship establishing unit 82 is configured to establish a correspondence between audio frequencies within the audio frequency range and operating frequencies within the operating frequency range, and obtain a first control waveform corresponding to the operating frequency for each audio frequency;

[0086] a voltage amplitude acquisition unit 83 for acquiring an audio volume range of the audio sample and a voltage amplitude range of the motor, wherein the voltage amplitude range refers to a voltage range formed by the maximum voltage amplitudes of multiple control waveforms corresponding to the motor, each control waveform corresponding to a maximum vibration amplitude;

[0087] a second relationship obtaining unit 84, configured to establish a corresponding relationship between the audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range, and obtain a corresponding relationship between the audio volume and the maximum voltage amplitude;

[0088] The correspondence acquisition unit 85 is used to adjust the maximum voltage amplitude of each first control waveform based on the correspondence between the audio volume and the maximum voltage amplitude, to obtain multiple second control waveforms corresponding to the audio volume range, and all second control waveforms constitute the correspondence between the audio feature data and the vibration intensity.

[0089] It is understandable that the device provided in the embodiments of the present disclosure corresponds to the above-mentioned method. For specific content, please refer to the content of each embodiment of the method, which will not be repeated here.

[0090] Figure 9 9 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 900 may be a smartphone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0091] Reference Figure 9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , a communication component 916 , and an image acquisition component 918 .

[0092] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 902 may include one or more processors 920 to execute computer programs. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.

[0093] The memory 904 is configured to store various types of data to support operations on the electronic device 900. Examples of such data include computer programs for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0094] The power supply assembly 906 provides power to various components of the electronic device 900. The power supply assembly 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 900. The power supply assembly 906 may include a power chip, and the controller may communicate with the power chip to control the power chip to turn on or off a switching device, thereby enabling or disabling the battery to supply power to the mainboard circuit.

[0095] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0096] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.

[0097] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, such as a keyboard, a click wheel, a button, etc.

[0098] The sensor assembly 914 includes one or more sensors for providing various aspects of the status assessment of the electronic device 900. For example, the sensor assembly 914 can detect the open / closed state of the electronic device 900, the relative positioning of components, such as the display screen and keypad of the electronic device 900, and can also detect changes in the position of the electronic device 900 or a component, the presence or absence of contact between the target object and the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and changes in the temperature of the electronic device 900.

[0099] The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0100] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0101] In an exemplary embodiment, a non-transitory readable storage medium including an executable computer program is also provided, such as a memory 904 including instructions. The executable computer program can be executed by a processor. The readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like.

[0102] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0103] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A vibration intensity control method, characterized in that: Applicable to an electronic device provided with a motor, the method comprises: Get the audio feature data of the currently playing audio; According to the correspondence between the audio feature data and the preset audio feature data and the vibration intensity, the target control waveform in the current detection cycle of the motor is obtained; the correspondence between the audio feature data and the vibration intensity includes multiple control waveforms; the control waveform is obtained by adjusting the maximum voltage amplitude of the first control waveform based on the correspondence between each audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range of the motor; the first control waveform is obtained based on the correspondence between the audio frequency range and the operating frequency range of the motor; the correspondence between each audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range of the motor includes a one-to-one correspondence between each sub-frequency band within the audio frequency range and each sub-frequency band within the operating frequency range; the correspondence between the audio frequency range and the operating frequency range of the motor includes a one-to-one correspondence between each sub-volume segment within the audio volume range and each sub-amplitude segment within the voltage amplitude range; driving the motor according to the target control waveform to adjust the vibration intensity of the motor to a target vibration intensity corresponding to the target control waveform; The audio feature data is obtained by at least one of the following methods: (1) When the electronic device includes an encoder for decoding and encoding audio, sampling an audio signal from an output end of the encoder and obtaining audio feature data of the audio signal; (2) When the electronic device includes an audio acquisition device, sampling an audio signal from an output end of the audio acquisition device and obtaining audio feature data of the audio signal; Obtaining audio feature data of an audio signal includes: using the audio frequency corresponding to the dominant audio signal as the audio frequency of the current detection period, where dominant means that the energy of the audio signal of a certain frequency accounts for a proportion of the energy of the audio signal of the current detection period that exceeds a preset proportion.

2. The method according to claim 1, characterized in that The audio feature data includes the frequency and amplitude of the audio.

3. The method according to claim 1, characterized in that The correspondence between audio feature data and vibration intensity is obtained through the following steps: Obtaining the audio frequency range of the audio sample and the operating frequency range of the motor; the operating frequency range refers to the frequency range formed by the maximum frequency and minimum frequency of the motor vibrator when it is working, and each operating frequency corresponds to a control waveform; Establishing a correspondence between audio frequencies within the audio frequency range and operating frequencies within the operating frequency range, and obtaining a first control waveform corresponding to the operating frequency for each audio frequency; Obtaining an audio volume range of the audio sample and a voltage amplitude range of the motor, where the voltage amplitude range refers to a voltage range formed by maximum voltage amplitudes of multiple control waveforms corresponding to the motor, each control waveform corresponding to a maximum vibration amplitude; Establishing a correspondence between the audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range, thereby obtaining a correspondence between the audio volume and the maximum voltage amplitude; For each first control waveform, the maximum voltage amplitude of the first control waveform is adjusted based on the correspondence between the audio volume and the maximum voltage amplitude, to obtain multiple second control waveforms corresponding to the audio volume range, and all second control waveforms constitute the correspondence between the audio feature data and the vibration intensity.

4. A vibration intensity control device, characterized in that: Adapted to an electronic device provided with a motor, the device comprises: The audio feature acquisition module is used to obtain the audio feature data of the currently playing audio; A target waveform acquisition module, for acquiring a target control waveform in a current detection cycle of the motor according to the correspondence between the audio feature data and preset audio feature data and vibration intensity; the correspondence between the audio feature data and the vibration intensity includes a plurality of control waveforms; the control waveform is obtained by adjusting the maximum voltage amplitude of a first control waveform based on the correspondence between each audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range of the motor; the first control waveform is obtained based on the correspondence between the audio frequency range and the operating frequency range of the motor; the correspondence between each audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range of the motor includes a one-to-one correspondence between each sub-frequency band within the audio frequency range and each sub-frequency band within the operating frequency range; the correspondence between the audio frequency range and the operating frequency range of the motor includes a one-to-one correspondence between each sub-volume segment within the audio volume range and each sub-amplitude segment within the voltage amplitude range; a vibration intensity adjustment module, configured to drive the motor according to the target control waveform to adjust the vibration intensity of the motor to a target vibration intensity corresponding to the target control waveform; The audio feature acquisition module acquires the audio feature in at least one of the following ways: (1) When the electronic device includes an encoder for decoding and encoding audio, sampling an audio signal from an output end of the encoder and obtaining audio feature data of the audio signal; (2) When the electronic device includes an audio acquisition device, sampling an audio signal from an output end of the audio acquisition device and obtaining audio feature data of the audio signal; Obtaining audio feature data of an audio signal includes: using the audio frequency corresponding to the dominant audio signal as the audio frequency of the current detection period, where dominant means that the energy of the audio signal of a certain frequency accounts for a proportion of the energy of the audio signal of the current detection period that exceeds a preset proportion.

5. The device according to claim 4, characterized in that The audio feature data includes the frequency and amplitude of the audio.

6. The device according to claim 4, characterized in that The device further includes a corresponding relationship acquisition module, and the corresponding relationship acquisition module includes: An operating frequency acquisition unit, configured to acquire an audio frequency range of the audio sample and an operating frequency range of the motor; the operating frequency range refers to a frequency range formed by a maximum frequency and a minimum frequency of the motor vibrator during operation, and each operating frequency corresponds to a control waveform; a first relationship establishing unit, configured to establish a correspondence between audio frequencies within the audio frequency range and operating frequencies within the operating frequency range, and obtain a first control waveform corresponding to the operating frequency of each audio frequency; a voltage amplitude acquisition unit, configured to acquire an audio volume range of the audio sample and a voltage amplitude range of the motor, wherein the voltage amplitude range refers to a voltage range formed by the maximum voltage amplitudes of multiple control waveforms corresponding to the motor, each control waveform corresponding to a maximum vibration amplitude; a second relationship obtaining unit, configured to establish a corresponding relationship between the audio volume within the audio volume range and the maximum voltage amplitude within the voltage amplitude range, to obtain a corresponding relationship between the audio volume and the maximum voltage amplitude; The correspondence acquisition unit is used to adjust the maximum voltage amplitude of each first control waveform based on the correspondence between the audio volume and the maximum voltage amplitude, thereby obtaining multiple second control waveforms corresponding to the audio volume range, wherein all second control waveforms constitute a correspondence between the audio feature data and the vibration intensity.

7. An electronic device, characterized in that: include: processor; a memory for storing a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that When the executable computer program in the storage medium is executed by a processor, the steps of the method according to any one of claims 1 to 3 can be implemented.

Citation Information

Patent Citations

  • Sound vibration feedback method and system, and virtual reality helmet

    CN106527700A

  • Audio signal processing method and equipment and storage medium

    CN110010151A

  • Mobile phone bouncing along with music

    CN201123025Y