A vibration control method, device and computer readable storage medium
By obtaining and finding the waveform library of motor configuration properties, the problem of poor vibration sensing consistency on different electronic devices is solved, and the vibration sensing consistency of the same audio is improved, improving the user experience.
Patent Information
- Application Number
- CN202011228154.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-06
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2040-11-26
AI Technical Summary
The motor configuration properties on different electronic devices are different, resulting in poor consistency of vibration sensor feedback when the same audio.
By obtaining the waveform library of target vibration waveforms and motor configuration properties, find and call the corresponding drive waveforms to control motor vibrations, ensuring that the vibration waveforms under different motor configuration properties are consistent.
It improves the vibration sensitivity consistency of different electronic devices for the same audio output, and enhances the user's vibration interaction experience.
Smart Images

Figure CN112269895B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a vibration control method, device and computer-readable storage medium. Background Art
[0002] With the continuous development of electronic technology, electronic devices are no longer just a simple communication tool, but have gradually become a diversified user external interaction window. In actual applications, users' demand for the use of electronic devices continues to increase. At present, major electronic device manufacturers have invested a lot of energy to optimize the vibration feedback performance of electronic devices.
[0003] A typical application scenario of vibration feedback is audio vibration, that is, vibration feedback is triggered while the electronic device plays audio (such as incoming call ringtones, alarm ringtones, etc.). In the current audio vibration scheme, corresponding motor drive waveforms are usually set for different audios, and then when the audio is played, the motor vibration is controlled based on the corresponding motor drive waveform. However, in actual applications, the motor configuration properties (such as motor model, motor installation position, etc.) of electronic devices of different models may be different, so the actual vibration feedback to the user according to the same motor drive waveform is different, resulting in poor consistency in vibration when performing vibration feedback on the same audio on different electronic devices. Summary of the invention
[0004] The embodiments of the present application provide a vibration control method, device, and computer-readable storage medium, which can at least solve the problem of poor vibration consistency when performing vibration feedback on the same audio on different electronic devices in the related art.
[0005] A first aspect of an embodiment of the present application provides a vibration control method, comprising:
[0006] Obtain a target vibration waveform corresponding to the audio to be played, and obtain a waveform library corresponding to the motor configuration attribute; wherein the waveform library includes a mapping relationship between the vibration waveform and the drive waveform, and the vibration waveforms included in the waveform library corresponding to different motor configuration attributes are consistent;
[0007] Based on the target vibration waveform, searching the waveform library for a corresponding target driving waveform;
[0008] When the audio to be played is played, the target driving waveform is called to control the vibration of the motor.
[0009] A second aspect of an embodiment of the present application provides a vibration control device, comprising:
[0010] An acquisition module, used to acquire a target vibration waveform corresponding to the audio to be played, and to acquire a waveform library corresponding to the motor configuration attribute; wherein the waveform library includes a mapping relationship between the vibration waveform and the drive waveform, and the vibration waveforms included in the waveform library corresponding to different motor configuration attributes are consistent;
[0011] A search module, used for searching the waveform library for a corresponding target driving waveform based on the target vibration waveform;
[0012] The control module is used to call the target driving waveform to control the vibration of the motor when playing the audio to be played.
[0013] A third aspect of an embodiment of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the vibration control method provided in the first aspect of the embodiment of the present application is implemented.
[0014] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each step of the vibration control method provided in the first aspect of the embodiment of the present application is implemented.
[0015] As can be seen from the above, according to the vibration control method, device and computer-readable storage medium provided by the scheme of the present application, a target vibration waveform corresponding to the audio to be played is obtained, and a waveform library corresponding to the motor configuration attribute is obtained, wherein the waveform library includes a mapping relationship between the vibration waveform and the drive waveform, and the vibration waveforms included in the waveform library corresponding to different motor configuration attributes are consistent; based on the target vibration waveform, the corresponding target drive waveform is searched in the waveform library; when the audio to be played is played, the target drive waveform is called to control the motor vibration. Through the implementation of the scheme of the present application, the drive waveform is adaptively configured for different motor configuration attributes, so that the vibration waveform output by electronic devices with different motor configurations for the same audio can be consistent, which can effectively improve the consistency of the vibration sense output by different electronic devices for the same audio, and enhance the user's vibration interaction experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a basic flow chart of a vibration control method provided in the first embodiment of the present application;
[0017] Figure 2 A schematic flow chart of a driving waveform search method provided in the first embodiment of the present application;
[0018] Figure 3 A schematic flow chart of another driving waveform search method provided in the first embodiment of the present application;
[0019] Figure 4 A schematic diagram of the flow of the audio vibration following method provided in the first embodiment of the present application;
[0020] Figure 5 A detailed flow chart of the vibration control method provided in the second embodiment of the present application;
[0021] Figure 6 A schematic diagram of a program module of a vibration control device provided in a third embodiment of the present application;
[0022] Figure 7 A schematic diagram of the structure of an electronic device provided in the fourth embodiment of the present application. DETAILED DESCRIPTION
[0023] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0024] In order to solve the problem of poor consistency of vibration when performing vibration feedback on the same audio on different electronic devices in the related art, the first embodiment of the present application provides a vibration control method, such as Figure 1 The basic flow chart of the vibration control method provided in this embodiment includes the following steps:
[0025] Step 101: Obtain a target vibration waveform corresponding to the audio to be played, and obtain a waveform library corresponding to the motor configuration attributes.
[0026] Specifically, the waveform library of this embodiment includes a mapping relationship between vibration waveforms and drive waveforms, and the vibration waveforms included in the waveform library corresponding to different motor configuration attributes are consistent. In practical applications, motors include linear motors, rotor motors, etc. installed on electronic devices. Electronic devices are not limited to mobile phones, but can also include devices with vibration functions such as handles or smart wearable devices. Motor configuration attributes may include motor models, motor installation locations, etc. At present, the motor configuration attributes of electronic devices of different series from the same manufacturer or electronic devices of different models in the same series are usually different. In addition, the vibration control scenarios of this embodiment include not only audio vibrations for notifications such as incoming calls, charging, and alarms, but also audio vibrations in scenarios such as games and videos.
[0027] It should be understood that the vibration waveform is the waveform of the vibration signal transmitted to the outside when the motor vibrates, and the driving waveform is the waveform of the electrical signal of the driving IC driving the motor of the electronic device to vibrate. In this embodiment, the vibration waveform required to be output for the same audio is kept consistent, while the driving waveforms corresponding to the motors of different configuration attributes under each vibration waveform are different. In this embodiment, taking the motor configuration attribute including the motor configuration attribute A and the motor configuration attribute B, and the vibration waveform type including the vibration waveform A, the vibration waveform B and the vibration waveform C as an example, in the waveform library corresponding to the motor configuration attribute A, the mapping relationship between the vibration waveform A, the vibration waveform B, the vibration waveform C and the driving waveform 1, the driving waveform 2, and the driving waveform 3 is included, and in the waveform library corresponding to the motor configuration attribute B, the mapping relationship between the vibration waveform A, the vibration waveform B, the vibration waveform C and the driving waveform 4, the driving waveform 5, and the driving waveform 6 is included, that is, for motors with different configuration attributes, the driving waveforms corresponding to the same vibration waveform are different.
[0028] It should also be noted that this embodiment can use the big data of previous waveform debugging to establish a waveform library corresponding to different motors while maintaining the consistency of the output vibration waveform, and then continuously fit the correlation between the driving waveform and the existing vibration waveform through machine learning to further optimize the accuracy of the waveform library.
[0029] Step 102: Based on the target vibration waveform, search for a corresponding target driving waveform in a waveform library.
[0030] Specifically, in this embodiment, considering that the audio types required to be output by electronic devices in actual applications are different, and in order to ensure the user's vibration interaction experience, different vibration effects are usually set for different audio types, such as setting vibration waveform A for incoming call prompt sound, setting vibration waveform B for charging prompt sound, etc., to meet the user's diverse and personalized vibration interaction needs. This embodiment uses the vibration waveform as a search input factor for the waveform library, and can output the corresponding drive waveform.
[0031] In some implementations of this embodiment, obtaining a target vibration waveform corresponding to the audio to be played includes: segmenting the audio to be played and obtaining audio feature parameters of each audio segment; configuring a target vibration waveform corresponding to each audio segment according to each audio feature parameter. Correspondingly, searching for a corresponding target driving waveform in a waveform library based on the target vibration waveform includes: searching for a corresponding driving waveform in the waveform library based on each target vibration waveform; synthesizing all the found driving waveforms according to the playback order of the audio segments to obtain a target driving waveform.
[0032] Specifically, in actual applications, corresponding vibration waveforms can be pre-associated for different audios, and then in the audio vibration scenario, the preset corresponding relationship can be directly queried according to the audio to be played to obtain the target vibration waveform. However, considering that it is difficult to pre-associate vibration waveforms for all types of audio in actual applications, and the accuracy of configuring the corresponding vibration waveform for audio as a whole is poor, this embodiment performs segmented processing on the audio to be played, and then extracts the audio feature parameters of each audio segment, and then configures the vibration waveform of each audio segment based on the audio features of each audio segment. Thus, on the one hand, a vibration waveform with high adaptability can be effectively configured for audio that has not been considered in advance, and on the other hand, configuring the vibration waveform with the audio segment as the smallest unit can improve the accuracy of the configured vibration waveform.
[0033] In addition, when obtaining the driving waveform of the audio to be played, the present embodiment obtains the driving waveform corresponding to the vibration waveform of each audio segment, and then synthesizes the driving waveform of each audio segment according to the order in which the audio segments are played, so as to obtain the driving waveform of the entire audio to be played. For example, the audio to be played includes audio segments 1, 2, and 3 played in sequence, and the driving waveforms corresponding to the three audio segments are driving waveforms A, B, and C, then the synthesized target driving waveform is the driving waveform (A+B+C). It should be understood that in actual applications, the specific expression form of the driving waveform can be a driving format file, and the order of the sub-driving format files corresponding to each audio segment in the synthesized driving format file determines the order in which the sub-driving format files are called when the audio is played.
[0034] Furthermore, in some implementations of the present embodiment, the target vibration waveform corresponding to each audio segment is configured according to each audio feature parameter, including: determining the corresponding waveform vibration duration, waveform vibration amplitude and waveform vibration frequency according to the audio duration, audio amplitude and audio frequency of the audio segment; and configuring the target vibration waveform corresponding to each audio segment based on the waveform vibration duration, waveform vibration amplitude and waveform vibration frequency.
[0035] Specifically, the audio feature parameters of this embodiment include: audio duration, audio amplitude, and audio frequency. In this embodiment, the waveform characteristics of the vibration waveform are adaptively determined according to the audio characteristics, so that the adaptability of the vibration waveform and the audio signal waveform can be effectively guaranteed, which is specifically reflected in that the speed, intensity, and duration of the vibration of the audio are adapted to the rhythm speed, pitch, and playback duration of the audio, thereby improving the correlation between the vibration and the music, and providing users with a more recognizable and interesting vibration interaction experience.
[0036] Step 103: When playing the audio to be played, call the target driving waveform to control the vibration of the motor.
[0037] Specifically, this embodiment synchronously controls the motor of the electronic device to vibrate while the audio is playing, so as to achieve audio vibration. In practical applications, for different models of electronic devices produced by the same electronic device manufacturer, the driving waveform is adaptively configured according to different motor configuration properties, so that the vibration waveform output by electronic devices with different motor configurations for the same audio can be consistent, which can effectively ensure the consistency of the vibration output for the same audio on different electronic devices (such as iterative products), improve the user's vibration interaction experience, and ensure the vibration recognition of the electronic device brand.
[0038] like Figure 2 FIG. 1 is a flow chart of a driving waveform search method provided by the present embodiment. In some implementations of the present embodiment, based on the target vibration waveform, the process of searching for the corresponding target driving waveform in the waveform library specifically includes the following steps:
[0039] Step 201: Searching for a driving waveform in a waveform library based on a target vibration waveform;
[0040] Step 202: when there is no search result, obtain the audio playback scene corresponding to the audio to be played;
[0041] Step 203: Obtain historical playback audio corresponding to the audio playback scene;
[0042] Step 204: Search for a target driving waveform in a waveform library using the vibration waveform of the historically played audio.
[0043] Specifically, in actual applications, since it is difficult for the waveform library to fully cover the driving waveforms corresponding to all vibration waveforms, there may be no query results for a specific vibration waveform. For example, if the current audio to be played is an unfamiliar audio, then its corresponding vibration waveform has not been considered in advance. In this case, the present embodiment can obtain the audio playback scene corresponding to the audio to be played, and then obtain the historical playback audio under the same playback scene, and then query the waveform library based on the vibration waveform of the historical playback audio, and determine the driving waveform corresponding to the historical playback audio as the driving waveform of the current audio to be played, thereby avoiding the failure of the audio vibration function.
[0044] For example, in an incoming call scenario, in historical usage scenarios, the user has set a certain system ringtone for the incoming call prompt, and the correspondence between the vibration waveform and the driving waveform of the system ringtone has been pre-configured by the electronic device manufacturer. If the user changes the incoming call prompt ringtone to another third-party ringtone during subsequent use, then the corresponding driving waveform cannot usually be found in the pre-configured waveform library. However, since both the third-party ringtone and the system ringtone are used in the incoming call scenario, considering that users usually have the same audio vibration requirements in the same scenario, the driving waveform of the previously used system ringtone can be directly determined as the driving waveform of the current third-party ringtone.
[0045] like Figure 3 FIG. 1 is a flow chart of another driving waveform search method provided by the present embodiment. In some implementations of the present embodiment, based on the target vibration waveform, the process of searching for the corresponding target driving waveform in the waveform library specifically includes the following steps:
[0046] Step 301: Searching for a driving waveform in a waveform library based on a target vibration waveform;
[0047] Step 302: when there is no search result, based on the waveform characteristic parameters of the target vibration waveform, determine from the waveform library a vibration waveform whose waveform characteristic similarity is greater than a preset similarity threshold;
[0048] Step 303: determine the driving waveform corresponding to the determined vibration waveform as the target driving waveform corresponding to the target vibration waveform.
[0049] Specifically, in another implementation method, if the driving waveform of the target vibration waveform is not provided in the waveform library, it is also possible to obtain a vibration waveform with a similar waveform in the waveform library based on the waveform characteristics, and then determine the driving waveform corresponding to the vibration waveform in the waveform library as the driving waveform corresponding to the target vibration waveform. In this way, for unfamiliar audio that has not been pre-configured with a driving waveform, a vibration experience with the highest possible relevance to music can be provided.
[0050] like Figure 4 FIG. 1 is a flow chart of an audio vibration following method provided by the present embodiment. In some implementations of the present embodiment, when the audio to be played is played, the process of calling the target driving waveform to control the vibration of the motor specifically includes the following steps:
[0051] Step 401: compare the current usage scenario information of the electronic device with the standard usage scenario information;
[0052] Step 402: when the difference between the current usage scenario information and the standard usage scenario information is greater than a preset difference threshold, determine a corresponding waveform vibration amplitude adjustment amount based on a difference characterization parameter between the current usage scenario information and the standard usage scenario information;
[0053] Step 403: adjusting the waveform vibration amplitude of the target drive waveform based on the waveform vibration amplitude adjustment amount;
[0054] Step 404 : When playing the audio to be played, control the vibration of the motor based on the adjusted target driving waveform.
[0055] Specifically, in actual applications, the specific scenarios in which users use electronic devices are different. The usage scenarios may include sports usage scenarios, stationary usage scenarios, etc., and when the waveform library is usually configured, the driving waveform is usually configured for the standard usage scenario. When the actual usage scenario is very different from the standard usage scenario, there will be a problem that the vibration intensity output according to the target driving waveform does not match the actual needs of the user. Based on this, this embodiment determines the vibration amplitude adjustment amount of the target driving waveform according to the difference between the current usage scenario and the standard usage scenario, and then realizes the ringtone vibration by adjusting the target driving waveform after the vibration amplitude. For example, in the sports usage scenario, the user's perception of vibration is relatively weak, then the waveform vibration amplitude of the driving waveform can be strengthened to enable the user to normally perceive the audio vibration through a relatively strong vibration intensity.
[0056] In other implementations of this embodiment, when the audio to be played is played, the process of calling the target drive waveform to control the vibration of the motor specifically includes the following steps: when the audio to be played is played, generating a vibration control instruction based on the target drive waveform; based on the communication connection with the associated device, sending the vibration control instruction to the associated device to trigger the associated device to control the vibration of the motor according to the target drive waveform.
[0057] Specifically, this embodiment takes the electronic device as a mobile phone as an example, and the associated device can be a wearable device, such as a smart watch, smart glasses, etc. In practical applications, a typical application of audio vibration is to provide reminders to users, but the electronic device used by the user may not be carried by the user, so the vibration cannot be effectively transmitted to the user. Therefore, this embodiment takes into account that the wearable device bound to the electronic device is usually a device carried by the user. When the electronic device plays audio, a vibration control instruction carrying a target drive waveform can be sent to the associated device to control the associated device to vibrate according to the audio played by the electronic device. Even if the user does not perceive the audio played by the electronic device because he is far away from the electronic device, the user can be reminded by the vibration output by the associated device.
[0058] Based on the technical solution of the embodiment of the present application described above, a target vibration waveform corresponding to the audio to be played is obtained, and a waveform library corresponding to the motor configuration attribute is obtained, wherein the waveform library includes a mapping relationship between the vibration waveform and the drive waveform, and the vibration waveforms included in the waveform library corresponding to different motor configuration attributes are consistent; based on the target vibration waveform, the corresponding target drive waveform is searched in the waveform library; when the audio to be played is played, the target drive waveform is called to control the motor vibration. Through the implementation of the solution of the present application, the drive waveform is adaptively configured for different motor configuration attributes, so that the vibration waveform output by electronic devices with different motor configurations for the same audio can be consistent, which can effectively ensure the consistency of the vibration sense output for the same audio on different electronic devices, and enhance the user's vibration interaction experience.
[0059] Figure 5 The method in is a refined vibration control method provided in the second embodiment of the present application, and the vibration control method includes:
[0060] Step 501: segment the audio to be played and obtain audio feature parameters of each audio segment.
[0061] Specifically, in this embodiment, the audio to be played may be an incoming call reminder tone, a charging reminder tone, etc., and the audio feature parameters may include: audio duration, audio amplitude, audio frequency, etc.
[0062] Step 502: configure a target vibration waveform corresponding to each audio segment according to each audio feature parameter.
[0063] Specifically, this embodiment configures the vibration waveform of each audio clip based on the audio features of each audio clip, that is, the vibration waveform is configured with the audio clip as the smallest unit, which can improve the accuracy of the configured vibration waveform. In addition, it is difficult to pre-associate corresponding vibration waveforms for all complete audios in practical applications. Only limited characteristic vibration waveforms can be prepared in advance, and then flexibly selected and synthesized according to the audio features of the specific audio to be played, which can effectively reduce the workload of associating the vibration waveform with the audio.
[0064] Step 503: Based on each target vibration waveform, search for a corresponding driving waveform in a waveform library corresponding to the motor configuration attribute.
[0065] Specifically, the waveform library of this embodiment includes a mapping relationship between a vibration waveform and a driving waveform, and the vibration waveforms included in the waveform library corresponding to different motor configuration attributes are consistent.
[0066] Step 504: synthesize all the found driving waveforms according to the playback order of the audio clips to obtain a target driving waveform.
[0067] Specifically, when obtaining the driving waveform of the audio to be played, this embodiment obtains the driving waveform corresponding to the vibration waveform of each audio segment, and then synthesizes the driving waveform of each audio segment according to the order in which the audio segments are played, so as to obtain the driving waveform of the entire audio to be played.
[0068] Step 505: Compare the current usage scenario information of the electronic device with the standard usage scenario information.
[0069] Specifically, in actual applications, the specific scenarios in which users use electronic devices are different. The usage scenarios may include sports usage scenarios, stationary usage scenarios, etc., and when the waveform library is usually configured, the driving waveform is usually configured for the standard usage scenario. When the actual usage scenario is significantly different from the standard usage scenario, there will be a problem that the vibration intensity output according to the target driving waveform does not match the actual needs of the user.
[0070] Step 506: When the comparison is inconsistent, determine the corresponding waveform vibration amplitude adjustment amount based on the difference characterization parameters between the current usage scenario information and the standard usage scenario information.
[0071] Step 507: Adjust the waveform vibration amplitude of the target drive waveform based on the waveform vibration amplitude adjustment amount.
[0072] Step 508: When playing the audio to be played, control the vibration of the motor based on the adjusted target driving waveform.
[0073] Specifically, this embodiment determines the vibration amplitude adjustment amount of the target drive waveform according to the difference between the current usage scenario and the standard usage scenario, and then realizes ringtone vibration by adjusting the target drive waveform after the vibration amplitude, so as to provide the user with vibration feedback that is suitable for the usage scenario of the electronic device.
[0074] It should be understood that the size of the serial number of each step in this embodiment does not mean the order of execution of the steps. The execution order of each step should be determined by its function and internal logic, and should not constitute a sole limitation on the implementation process of the embodiment of this application.
[0075] According to the vibration control method disclosed in the embodiment of the present application, the driving waveform is adaptively configured according to different motor configuration attributes, so that the vibration waveform output by electronic devices with different motor configurations for the same audio can be consistent, which can effectively ensure the consistency of the vibration output for the same audio on different electronic devices, thereby improving the user's vibration interaction experience; in addition, the vibration intensity of the audio during vibration is adaptively adjusted according to the use scenario of the electronic device, so as to provide the user with vibration feedback suitable for the use scenario of the electronic device.
[0076] Figure 6A vibration control device is provided in the third embodiment of the present application. The vibration control device can be used to implement the vibration control method in the above embodiments. Figure 6 As shown, the vibration control device mainly includes:
[0077] An acquisition module 601 is used to acquire a target vibration waveform corresponding to the audio to be played, and to acquire a waveform library corresponding to the motor configuration attribute; wherein the waveform library includes a mapping relationship between the vibration waveform and the drive waveform, and the vibration waveforms included in the waveform libraries corresponding to different motor configuration attributes are consistent;
[0078] A search module 602 is used to search for a corresponding target driving waveform in a waveform library based on the target vibration waveform;
[0079] The control module 603 is used to call the target driving waveform to control the vibration of the motor when playing the audio to be played.
[0080] In some implementations of this embodiment, when acquiring the target vibration waveform corresponding to the audio to be played, the acquisition module 601 is specifically used to: segment the audio to be played and acquire the audio feature parameters of each audio segment; respectively configure the target vibration waveform corresponding to each audio segment according to each audio feature parameter. Correspondingly, the search module 602 is specifically used to: respectively search for the corresponding driving waveform in the waveform library based on each target vibration waveform; synthesize all the found driving waveforms according to the playback order of the audio segments to obtain the target driving waveform.
[0081] Furthermore, in some implementations of this embodiment, the audio feature parameters include: audio duration, audio amplitude, and audio frequency. Correspondingly, when the acquisition module 601 configures the target vibration waveform corresponding to each audio segment according to each audio feature parameter, it is specifically used to: determine the corresponding waveform vibration duration, waveform vibration amplitude, and waveform vibration frequency according to the audio duration, audio amplitude, and audio frequency of the audio segment; and configure the target vibration waveform corresponding to each audio segment based on the waveform vibration duration, waveform vibration amplitude, and waveform vibration frequency.
[0082] In some other implementations of this embodiment, the search module 602 is specifically used to: search for a driving waveform in a waveform library based on a target vibration waveform; when there is no search result, obtain an audio playback scene corresponding to the audio to be played; obtain historical playback audio corresponding to the audio playback scene; and search for a target driving waveform in the waveform library through the vibration waveform of the historical playback audio.
[0083] In some other implementations of this embodiment, the search module 602 is specifically used to: search for a driving waveform in a waveform library based on a target vibration waveform; when there is no search result, determine from the waveform library a vibration waveform whose waveform feature similarity is greater than a preset similarity threshold based on waveform feature parameters of the target vibration waveform; and determine the driving waveform corresponding to the determined vibration waveform as the target driving waveform corresponding to the target vibration waveform.
[0084] In some implementations of this embodiment, the control module 603 is specifically used to: generate a vibration control instruction based on a target drive waveform when playing the audio to be played; and send the vibration control instruction to the associated device based on a communication connection with the associated device to trigger the associated device to control the motor vibration according to the target drive waveform.
[0085] In some other implementations of this embodiment, the control module 603 is specifically used to: compare the current usage scenario information of the electronic device with the standard usage scenario information; when the difference between the current usage scenario information and the standard usage scenario information is greater than a preset difference threshold, determine the corresponding waveform vibration amplitude adjustment amount based on the difference characterization parameters between the current usage scenario information and the standard usage scenario information; adjust the waveform vibration amplitude of the target drive waveform based on the waveform vibration amplitude adjustment amount; and when playing the audio to be played, control the motor vibration based on the adjusted target drive waveform.
[0086] It should be noted that the vibration control methods in the first and second embodiments can be implemented based on the vibration control device provided in this embodiment. Ordinary technicians in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the vibration control device described in this embodiment can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0087] According to the vibration control device provided by this embodiment, a target vibration waveform corresponding to the audio to be played is obtained, and a waveform library corresponding to the motor configuration attribute is obtained, wherein the waveform library includes a mapping relationship between the vibration waveform and the drive waveform, and the vibration waveforms included in the waveform library corresponding to different motor configuration attributes are consistent; based on the target vibration waveform, the corresponding target drive waveform is searched in the waveform library; when the audio to be played is played, the target drive waveform is called to control the motor vibration. Through the implementation of the scheme of this application, the drive waveform is adaptively configured for different motor configuration attributes, so that the vibration waveform output by electronic devices with different motor configurations for the same audio can be consistent, which can effectively ensure the consistency of the vibration sense output for the same audio on different electronic devices, and enhance the user's vibration sense interaction experience.
[0088] See also Figure 7 , Figure 7The fourth embodiment of the present application provides an electronic device. The electronic device can be used to implement the vibration control method in the above embodiments. Figure 7 As shown, the electronic device mainly includes:
[0089] The memory 701, the processor 702, the bus 703 and the computer program stored in the memory 701 and executable on the processor 702, the memory 701 and the processor 702 are connected via the bus 703. When the processor 702 executes the computer program, the vibration control method in the aforementioned embodiment is implemented. The number of the processors may be one or more.
[0090] The memory 701 may be a high-speed random access memory (RAM) memory, or a non-volatile memory, such as a disk memory. The memory 701 is used to store executable program codes, and the processor 702 is coupled to the memory 701 .
[0091] Furthermore, the present application also provides a computer-readable storage medium, which may be disposed in the electronic device in the above embodiments. Figure 7 Memory in the illustrated embodiment.
[0092] The computer readable storage medium stores a computer program, and when the program is executed by the processor, the vibration control method in the aforementioned embodiment is implemented. Furthermore, the computer storable medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and other media that can store program codes.
[0093] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0094] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0095] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0096] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a readable storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0097] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0098] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0099] The above is a description of the vibration control method, device and computer-readable storage medium provided in the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A vibration control method, characterized in that: include: Obtain a target vibration waveform corresponding to the audio to be played, and obtain a waveform library corresponding to the motor configuration attribute; wherein different motor configuration attributes correspond to different waveform libraries, and the waveform libraries corresponding to different motor configuration attributes are established on the premise of maintaining the consistency of the output vibration waveform, and the waveform library includes a mapping relationship between the vibration waveform and the drive waveform, and the vibration waveforms included in the waveform libraries corresponding to different motor configuration attributes are consistent; for different motor configuration attributes, the drive waveforms corresponding to the same vibration waveform are different; the motor configuration attributes include a motor model and / or a motor installation position; Based on the target vibration waveform, searching the waveform library for a corresponding target driving waveform; When the audio to be played is played, the target driving waveform is called to control the vibration of the motor.
2. The vibration control method according to claim 1, characterized in that: The step of obtaining a target vibration waveform corresponding to the audio to be played includes: Segment the audio to be played and obtain audio feature parameters of each audio segment; According to each of the audio feature parameters, a target vibration waveform corresponding to each of the audio segments is configured; The step of searching the waveform library for a corresponding target driving waveform based on the target vibration waveform includes: Based on each of the target vibration waveforms, searching for a corresponding driving waveform in the waveform library; All the found driving waveforms are synthesized according to the playing order of the audio clips to obtain a target driving waveform.
3. The vibration control method according to claim 2, characterized in that: The audio feature parameters include: audio duration, audio amplitude, and audio frequency; The configuring the target vibration waveform corresponding to each audio segment according to each audio feature parameter includes: Determine the corresponding waveform vibration duration, waveform vibration amplitude and waveform vibration frequency according to the audio duration, the audio amplitude and the audio frequency of the audio segment respectively; Based on the waveform vibration duration, the waveform vibration amplitude and the waveform vibration frequency, the target vibration waveform corresponding to each audio segment is configured respectively.
4. The vibration control method according to claim 1, characterized in that: The step of searching the waveform library for a corresponding target driving waveform based on the target vibration waveform includes: Based on the target vibration waveform, searching for a driving waveform in the waveform library; When there is no search result, obtaining the audio playback scene corresponding to the audio to be played; Acquire historical playback audio corresponding to the audio playback scene; The target driving waveform is searched in the waveform library through the vibration waveform of the historically played audio.
5. The vibration control method according to claim 1, characterized in that: The step of searching the waveform library for a corresponding target driving waveform based on the target vibration waveform includes: When there is no search result, based on the waveform characteristic parameters of the target vibration waveform, a vibration waveform having a waveform characteristic similarity greater than a preset similarity threshold is determined from the waveform library; The driving waveform corresponding to the determined vibration waveform is determined as the target driving waveform corresponding to the target vibration waveform.
6. The vibration control method according to any one of claims 1 to 5, characterized in that: The method of calling the target driving waveform to control the vibration of the motor when playing the audio to be played includes: When playing the audio to be played, generating a vibration control instruction based on the target driving waveform; Based on the communication connection with the associated device, the vibration control instruction is sent to the associated device to trigger the associated device to control the motor vibration according to the target driving waveform.
7. The vibration control method according to any one of claims 1 to 5, characterized in that: The method of calling the target driving waveform to control the vibration of the motor when playing the audio to be played includes: Comparing current usage scenario information of the electronic device with standard usage scenario information; When the difference between the current usage scenario information and the standard usage scenario information is greater than a preset difference threshold, determining a corresponding waveform vibration amplitude adjustment amount based on a difference characterization parameter between the current usage scenario information and the standard usage scenario information; adjusting the waveform vibration amplitude of the target drive waveform based on the waveform vibration amplitude adjustment amount; When the audio to be played is played, the motor vibration is controlled based on the adjusted target driving waveform.
8. A vibration control device, characterized in that: include: An acquisition module, used for acquiring a target vibration waveform corresponding to the audio to be played, and acquiring a waveform library corresponding to a motor configuration attribute; wherein different motor configuration attributes correspond to different waveform libraries, and the waveform libraries corresponding to different motor configuration attributes are established on the premise of maintaining the consistency of the output vibration waveform, and the waveform library includes a mapping relationship between the vibration waveform and the drive waveform, and the vibration waveforms included in the waveform libraries corresponding to different motor configuration attributes are consistent; for different motor configuration attributes, the drive waveforms corresponding to the same vibration waveform are different; the motor configuration attributes include a motor model and / or a motor installation position; A search module, used for searching the waveform library for a corresponding target driving waveform based on the target vibration waveform; The control module is used to call the target driving waveform to control the vibration of the motor when playing the audio to be played.
9. An electronic device, characterized in that: include: Memory, processor and bus; The bus is used to realize the connection and communication between the memory and the processor; The processor is used to execute the computer program stored in the memory; When the processor executes the computer program, the steps in the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.
