Tactile signal generation method, device, readable medium and electronic device
By converting the audio signal into a frequency domain signal and selecting the best frequency combination, a signal for tactile feedback is generated, which solves the problem of poor tactile feedback effect in the existing technology, achieves more efficient and accurate tactile feedback, and reduces the cost of tactile feedback. Labor costs.
Patent Information
- Application Number
- CN202210519682.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-05-12
AI Technical Summary
In the existing technology, tactile feedback is not effective, especially in virtual reality games. Users expect more accurate and efficient tactile feedback, but it is difficult to achieve this goal with current technology.
By converting the target audio signal into a frequency domain signal, decomposing it into sub-bands and determining the energy value of each sub-band, the best frequency combination is selected to generate the target signal for tactile feedback, and the mapping frequency combination is automatically optimized to improve feedback accuracy. degree and efficiency.
It realizes automatic selection of the mapping frequency combination with the best effect, improves the accuracy and efficiency of tactile feedback, reduces labor costs, and improves user experience.
Smart Images

Figure CN114995638B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a tactile signal generating method, device, readable medium and electronic device. Background Art
[0002] At present, in games, movies and immersive VR (Virtual Reality) scenes, devices are usually required to have tactile feedback functions. For example, in the process of VR games, when the user operates the handle to play the game, the user expects the handle to send corresponding tactile feedback (for example, vibration feedback) according to the operation, so that the user can know whether the operation is effective. In some cases, the mechanism of tactile feedback lies in the conversion from audio to touch. However, the current tactile feedback still has the problem of poor feedback effect. Summary of the invention
[0003] This section is provided to introduce the concepts in a brief form, which will be described in detail in the detailed implementation section below. This section is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to be used to limit the scope of the technical solution claimed for protection.
[0004] In a first aspect, the present disclosure provides a method for generating a tactile signal, the method comprising:
[0005] Determining a target frequency domain signal corresponding to the target audio signal to be processed;
[0006] Dividing the target frequency domain signal into a plurality of sub-bands, and determining a target energy value for each of the sub-bands;
[0007] Determining, from a plurality of candidate mapping frequency combinations, a target frequency combination that can obtain an optimal tactile feedback effect on a tactile feedback device;
[0008] According to the target frequency combination, a target tactile signal for tactile feedback is obtained.
[0009] In a second aspect, the present disclosure provides a tactile signal generating device, the device comprising:
[0010] A first determination module, used to determine a target frequency domain signal corresponding to a target audio signal to be processed;
[0011] A second determination module, configured to divide the target frequency domain signal into a plurality of sub-bands and determine a target energy value for each of the sub-bands;
[0012] A third determination module is used to determine a target frequency combination that can obtain the best tactile feedback effect on the tactile feedback device from a plurality of candidate mapping frequency combinations;
[0013] The processing module is used to obtain a target tactile signal for tactile feedback according to the target frequency combination.
[0014] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in the first aspect of the present disclosure.
[0015] In a fourth aspect, the present disclosure provides an electronic device, including:
[0016] a storage device having at least one computer program stored thereon;
[0017] At least one processing device is used to execute the at least one computer program in the storage device to implement the steps of the method described in the first aspect of the present disclosure.
[0018] Through the above technical solution, the target frequency domain signal corresponding to the target audio signal to be processed is determined, the target frequency domain signal is divided into multiple sub-bands, and the target energy value of each sub-band is determined. From multiple candidate mapping frequency combinations, the target frequency combination that can obtain the best tactile feedback effect on the tactile feedback device is determined, and the target tactile signal for tactile feedback is obtained according to the target frequency combination. In this way, the mapping frequency combination with the best effect can be automatically selected without manual adjustment, the feedback accuracy and efficiency are higher, and the labor cost is greatly reduced.
[0019] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0021] Figure 1 is a flow chart of a method for generating a tactile signal according to an embodiment of the present disclosure;
[0022] Figure 2 is a block diagram of a tactile signal generating device provided according to an embodiment of the present disclosure;
[0023] Figure 3 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0025] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0026] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0027] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0028] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0029] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0030] All actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.
[0031] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0032] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0033] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0034] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0035] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0036] Figure 1 FIG. 1 is a flow chart of a method for generating a tactile signal according to an embodiment of the present disclosure. Figure 1 As shown, the method provided by the present disclosure may include steps 11 to 14.
[0037] In step 11, a target frequency domain signal corresponding to the target audio signal to be processed is determined.
[0038] The target audio signal is a time domain audio signal.
[0039] For example, the target audio signal is subjected to a short-time Fourier transform (FFT) process to obtain a target frequency domain signal, wherein the number of FFT points can be selected according to the sampling rate and the computational complexity, for example, 512 points or 256 points are selected, and accordingly, 257 or 129 frequency domain signals can be obtained as the target frequency domain signal.
[0040] In step 12, the target frequency domain signal is divided into a plurality of sub-bands, and a target energy value of each sub-band is determined.
[0041] When dividing the target frequency domain signal, the number of divided sub-bands can be selected according to actual needs, for example, it can be selected according to the needs of tactile feedback, computational complexity, etc. (such as an integer between 3 and 7).
[0042] After the division is completed, the target energy value of each sub-band can be determined based on the divided data.
[0043] In a possible implementation, step 12 may include the following steps:
[0044] Dividing the target frequency domain signal into a plurality of sub-bands;
[0045] Determine the instantaneous energy value of each subband;
[0046] Perform mean filtering on the instantaneous energy value of the sub-band to obtain the filtered energy value of each sub-band;
[0047] The filtered energy value is normalized to obtain the target energy value of each sub-band.
[0048] After the target frequency domain signal is divided into multiple sub-bands, the energy sum of each sub-band at a specified time, that is, the instantaneous energy value of the sub-band, can be calculated first.
[0049] Normally, the data jump of instantaneous energy value is strong, which may be detrimental to subsequent data processing. Therefore, for the smoothness of the data, it can be processed by mean filtering. For example, the instantaneous energy of the target frequency domain signal after band division can be mean filtered in the time dimension to obtain a sub-band energy envelope composed of the filtered energy value of each sub-band. Among them, the filter length can be selected as needed according to the response delay and envelope smoothness. The longer the filter length, the smoother the sub-band energy envelope, and accordingly, the greater the response delay of the conversion from audio signal to tactile signal. For example, the filter length can be 5, and the corresponding response delay will be within 6ms.
[0050] After obtaining the filter energy value of each sub-band, the filter energy value may be normalized. The normalization process may refer to the following method:
[0051] According to the filtered energy value of each sub-band, that is, the sub-band energy envelope, the instantaneous gain value is calculated;
[0052] A long-term smoothing method is used to obtain a sub-band energy envelope noise level of each sub-band, and when the instantaneous gain value of the sub-band is less than or equal to the noise level, no additional processing is performed on the instantaneous gain value, and when the instantaneous gain value of the sub-band is less than or equal to the noise level, the gain value of the sub-band audio energy envelope is smoothed in the time dimension, wherein the smoothing speed may depend on the ratio of the gain of the previous frame to the current instantaneous gain value;
[0053] Finally, the above gain value (updated gain value, or unupdated gain value) is multiplied with the data on the sub-band energy envelope in sequence to obtain the normalized sub-band energy envelope, that is, the target energy value of each sub-band.
[0054] For example, when the ratio r between the gain of the previous frame t-1 and the instantaneous gain value required for the current frame t is greater than 4, the gain value of the t-th frame may be 0.75 times the gain value of the t-th frame; when the ratio r is greater than 2 and less than 4, the gain value of the t-th frame may be 0.81 times the gain value of the t-th frame; when the ratio r is greater than 1 and less than 2, the gain value of the t-th frame may be 0.92 times the gain value of the t-th frame; when the ratio r is less than 0.2, the gain value of the t-th frame may be 1.3 times the gain value of the t-1 frame; when the ratio r is greater than 0.2 and less than 0.5, the gain value of the t-th frame may be 1.1 times the gain value of the t-1 frame; when the ratio r is greater than 0.5 and less than 1, the gain value of the t-th frame may be 1.02 times the gain value of the t-1 frame.
[0055] Through the above method, the audio signal energy of each sub-band is normalized in the time dimension, which can ensure that the tactile signals converted from different audios are not affected by the volume of the audio itself. In other words, a unified interface is provided for the conversion of audio to tactile to adjust the tactile effect as a whole. Furthermore, the user can adjust the tactile intensity output by the tactile feedback device (for example, a vibration motor) as a whole through this unified interface according to their needs, without the need to manually adjust each audio file, which can improve the user experience.
[0056] In step 13, a target frequency combination that can obtain the best tactile feedback effect on the tactile feedback device is determined from a plurality of candidate mapping frequency combinations.
[0057] In the present disclosure, the tactile signal may be a vibration signal, and accordingly, the tactile feedback device may be a vibration motor.
[0058] In a possible implementation, step 13 may include the following steps:
[0059] Get sample data;
[0060] Determine the correspondence between tactile intensity and frequency;
[0061] For each candidate mapping frequency combination, determining an error value of the candidate mapping frequency combination according to the frequency reference value, the tactile intensity reference value and the corresponding relationship;
[0062] The candidate mapping frequency combination corresponding to the minimum error value is determined as the target frequency combination.
[0063] The sample data includes a frequency reference value and a tactile intensity reference value determined based on a plurality of audio signal samples.
[0064] In the present disclosure, multiple audio signal samples that are expected to obtain an ideal tactile feedback effect can be collected as sample data. At the same time, a nonlinear fitting can be performed on the frequency response curve of the tactile feedback device to obtain a functional relationship between tactile intensity and frequency, that is, a corresponding relationship between tactile intensity and frequency.
[0065] Furthermore, the target audio signal may be processed as described above on the audio signal sample to obtain a sub-band energy value corresponding to the audio signal sample.
[0066] The frequency reference value can be selected according to actual needs and used for data calibration of tactile intensity. For example, the frequency reference value can be the resonant frequency of the tactile feedback device. Among them, all sub-band energy values in the sample data can be mapped to the frequency reference value to generate a tactile signal for tactile intensity calibration, and the above tactile signal can be connected to the tactile feedback device, and then the calibration personnel can determine the calibration parameters corresponding to each audio signal based on the real-time tactile feedback, and obtain the tactile intensity reference value of each audio.
[0067] For example, the tactile signal and the tactile intensity reference value may be calculated with reference to the following formula:
[0068]
[0069]
[0070] Wherein, St is a tactile signal used for tactile intensity calibration at time t, St is a single-frequency sine wave signal, whose frequency is 2*π*f0 / fs, f0 is a frequency reference value, fs is a sampling rate, α is a calibration parameter, E is a sub-band energy value corresponding to an audio signal sample, and t is the number of time frames from 0 to T. For example, if the tactile signal is a vibration signal, the tactile intensity reference value Ht can represent the vibration intensity.
[0071] The calculation idea of the tactile intensity reference value Ht is to use 2*π*f0 / fs as the frequency and the product of the calibration parameter α and the sub-band energy value corresponding to the audio signal sample as the amplitude to generate the average amplitude value of the sine wave in the time dimension.
[0072] After determining the above parameters, you can select the candidate mapping frequency combination.
[0073] In a possible implementation manner, the candidate mapping frequency combination may be determined in the following manner:
[0074] According to the correspondence between the tactile intensity and the frequency, a plurality of frequencies capable of evenly distributing the tactile intensity are determined as candidate mapping frequency combinations.
[0075] That is, according to the correspondence between tactile intensity and frequency determined in the above steps, multiple groups of frequencies can be selected as candidate mapping frequencies, and the selection should ensure that the selected group of frequencies has a uniform distribution of tactile intensity.
[0076] In another possible implementation, the candidate mapping frequency combination may be determined in the following manner:
[0077] According to the resonant frequency of the tactile feedback device, a target frequency interval including the resonant frequency is determined, and a group of frequencies is determined from the target frequency interval as a candidate mapping frequency combination.
[0078] That is, the resonance frequency of the tactile feedback device is used as a frequency reference value. For example, 30 Hz above and below the resonance frequency can be selected to form a target frequency interval, and then multiple groups of frequencies are selected from them as candidate mapping frequencies.
[0079] Since the power consumption of the tactile feedback device is minimal at the resonant frequency, taking the resonant frequency of the tactile feedback device as an optimization target can effectively reduce the power consumption of the tactile feedback device.
[0080] In a possible implementation manner, determining the error value of the candidate mapping frequency combination according to the frequency reference value, the tactile intensity reference value, and the corresponding relationship may include the following steps:
[0081] Determining a first tactile intensity corresponding to the candidate mapping frequency combination according to the candidate mapping frequency combination and the corresponding relationship;
[0082] determining a mean square error between the first tactile intensity and a tactile intensity reference value as a first mean square error;
[0083] Determine a mean square error between the candidate mapping frequency combination and the frequency reference value as a second mean square error;
[0084] An error value of the candidate mapping frequency combination is determined according to the sum of the first mean square error and the second mean square error.
[0085] For example, the first tactile intensity may be calculated by the following formula:
[0086]
[0087]
[0088] Wherein, Sn is the tactile signal corresponding to the alternative mapping frequency combination at time t, and its frequency is 2*π*f / fs, fs is the sampling rate, Fn is the alternative mapping frequency combination (i.e., the alternative mapping frequency combination for which the current calculation is currently being performed), α is the calibration parameter, E is the sub-band energy value corresponding to the audio signal sample, t is the number of time frames from 0 to T, and G(f) is the correspondence between tactile intensity and frequency. The calculation idea of the first tactile intensity Hn is consistent with the calculation idea of the tactile intensity reference value Ht, which will not be repeated here.
[0089] For example, the error value cost of the candidate mapping frequency combination can be determined by the following formula:
[0090]
[0091] Among them, the meanings of Hn, Ht, f, f0, and Fn have been given in the formula provided above and will not be repeated here. In the above calculation formula, the left half of the right side of the equation is used to calculate the first mean square error, and the right half of the right side of the equation is used to calculate the second mean square error.
[0092] Therefore, based on the above formula, calculation is performed for each candidate mapping frequency combination to obtain the error value corresponding to each candidate mapping frequency combination.
[0093] In this way, the tactile intensity reference value and the frequency reference value are introduced into the error value, and the error value is used as the criterion for judging the tactile feedback effect. By selecting the target frequency combination with the purpose of minimizing the overall difference between the two, the tactile feedback effect can be made to meet the expected value and the power consumption of the tactile feedback device can be reduced, which is conducive to achieving the optimal tactile feedback effect.
[0094] In step 14, a target tactile signal for tactile feedback is obtained according to the target frequency combination.
[0095] In a possible implementation, step 14 may include the following steps:
[0096] According to the target frequency combination, the target energy value of each sub-band is mapped to a tactile signal component.
[0097] The tactile signal components are superimposed to obtain a target tactile signal for tactile feedback.
[0098] Mapping the target energy value of each sub-band to a tactile signal component can be achieved in the following manner:
[0099] For the target energy value of each subband, a sinusoidal wave signal with the target frequency and the target energy value is generated according to the target energy value and the target frequency corresponding to the target energy value in the target frequency combination as the tactile signal component corresponding to the target energy value.
[0100] Thereafter, the obtained tactile signal components are superimposed to obtain a target tactile signal for tactile feedback, and then the target tactile signal is sent to a tactile feedback device, which provides tactile feedback.
[0101] For example, the target tactile signal for tactile feedback may be calculated according to the following formula:
[0102]
[0103] Wherein, H(t) is the target tactile signal for tactile feedback at time t, Fn is the target frequency combination, and E(f,t) is the target energy value of the sub-band corresponding to frequency f in the target frequency combination at time t.
[0104] Through the above technical solution, the target frequency domain signal corresponding to the target audio signal to be processed is determined, the target frequency domain signal is divided into multiple sub-bands, and the target energy value of each sub-band is determined. From multiple candidate mapping frequency combinations, the target frequency combination that can obtain the best tactile feedback effect on the tactile feedback device is determined, and the target tactile signal for tactile feedback is obtained according to the target frequency combination. In this way, the mapping frequency combination with the best effect can be automatically selected without manual adjustment, the feedback accuracy and efficiency are higher, and the labor cost is greatly reduced.
[0105] Figure 2 is a block diagram of a tactile signal generating device provided according to an embodiment of the present disclosure, such as Figure 2 As shown, the device 20 comprises:
[0106] A first determination module 21, used to determine a target frequency domain signal corresponding to a target audio signal to be processed;
[0107] A second determination module 22, configured to divide the target frequency domain signal into a plurality of sub-bands and determine a target energy value for each of the sub-bands;
[0108] A third determination module 23 is used to determine a target frequency combination that can obtain the best tactile feedback effect on the tactile feedback device from a plurality of candidate mapping frequency combinations;
[0109] The processing module 24 is used to obtain a target tactile signal for tactile feedback according to the target frequency combination.
[0110] Optionally, the third determining module 23 includes:
[0111] An acquisition submodule, configured to acquire sample data, wherein the sample data includes a frequency reference value and a tactile intensity reference value determined based on a plurality of audio signal samples;
[0112] A first determination submodule, used to determine the corresponding relationship between tactile intensity and frequency;
[0113] A second determining submodule, configured to determine, for each candidate mapping frequency combination, an error value of the candidate mapping frequency combination according to the frequency reference value, the tactile intensity reference value and the corresponding relationship;
[0114] The third determination submodule is used to determine the candidate mapping frequency combination corresponding to the minimum error value as the target frequency combination.
[0115] Optionally, the second determining submodule includes:
[0116] a fourth determining submodule, configured to determine, according to the candidate mapping frequency combination and the corresponding relationship, a first tactile intensity corresponding to the candidate mapping frequency combination;
[0117] a fifth determining submodule, configured to determine a mean square error between the first tactile intensity and the tactile intensity reference value as a first mean square error;
[0118] a sixth determination submodule, configured to determine a mean square error between the candidate mapping frequency combination and the frequency reference value as a second mean square error;
[0119] A seventh determination submodule is configured to determine an error value of the candidate mapping frequency combination according to the sum of the first mean square error and the second mean square error.
[0120] Optionally, the frequency reference value is a resonance frequency of the tactile feedback device.
[0121] Optionally, the candidate mapping frequency combination is determined by the following modules:
[0122] A fourth determination module is used to determine, according to the correspondence between the tactile intensity and the frequency, a plurality of frequencies that can make the tactile intensity evenly distributed as the candidate mapping frequency combination; or,
[0123] The fifth determination module is used to determine a target frequency interval including the resonance frequency according to the resonance frequency of the tactile feedback device, and determine a group of frequencies from the target frequency interval as the candidate mapping frequency combination.
[0124] Optionally, the second determining module 22 includes:
[0125] A division submodule, used for dividing the target frequency domain signal into a plurality of sub-bands;
[0126] An eighth determination submodule, configured to determine an instantaneous energy value of each of the subbands;
[0127] A filtering submodule, used for performing mean filtering on the instantaneous energy value of the subband to obtain a filtered energy value of each subband;
[0128] The normalization processing submodule is used to perform normalization processing on the filtered energy value to obtain a target energy value of each subband.
[0129] Optionally, the processing module 24 includes:
[0130] A mapping submodule, configured to map the target energy value of each subband into a tactile signal component according to the target frequency combination;
[0131] The superposition submodule is used to superimpose the tactile signal components to obtain a target tactile signal for tactile feedback.
[0132] Optionally, the mapping submodule is used to generate a sinusoidal wave signal with a frequency of the target frequency and an energy of the target energy value for each of the sub-bands, based on the target energy value and the target frequency corresponding to the target energy value in the target frequency combination, as a tactile signal component corresponding to the target energy value.
[0133] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0134] Reference below Figure 3 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0135] like Figure 3As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0136] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0137] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0138] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0139] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0140] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0141] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: determines a target frequency domain signal corresponding to a target audio signal to be processed; divides the target frequency domain signal into a plurality of sub-bands, and determines a target energy value for each of the sub-bands; determines a target frequency combination that can obtain the best tactile feedback effect on a tactile feedback device from a plurality of alternative mapping frequency combinations; and obtains a target tactile signal for tactile feedback based on the target frequency combination.
[0142] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0144] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the first determination module may also be described as a "module for determining a target frequency domain signal corresponding to a target audio signal to be processed".
[0145] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0146] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0147] According to one or more embodiments of the present disclosure, a method for generating a tactile signal is provided, the method comprising:
[0148] Determining a target frequency domain signal corresponding to the target audio signal to be processed;
[0149] Dividing the target frequency domain signal into a plurality of sub-bands, and determining a target energy value for each of the sub-bands;
[0150] Determining, from a plurality of candidate mapping frequency combinations, a target frequency combination that can obtain an optimal tactile feedback effect on a tactile feedback device;
[0151] According to the target frequency combination, a target tactile signal for tactile feedback is obtained.
[0152] According to one or more embodiments of the present disclosure, a method for generating a tactile signal is provided, wherein determining a target frequency combination that can obtain an optimal tactile feedback effect on a tactile feedback device from a plurality of candidate mapping frequency combinations comprises:
[0153] Acquire sample data, the sample data comprising a frequency reference value and a tactile intensity reference value determined based on a plurality of audio signal samples;
[0154] Determine the correspondence between tactile intensity and frequency;
[0155] For each candidate mapping frequency combination, determining an error value of the candidate mapping frequency combination according to the frequency reference value, the tactile intensity reference value and the corresponding relationship;
[0156] The candidate mapping frequency combination corresponding to the minimum error value is determined as the target frequency combination.
[0157] According to one or more embodiments of the present disclosure, a method for generating a tactile signal is provided, wherein determining the error value of the candidate mapping frequency combination according to the frequency reference value, the tactile intensity reference value and the corresponding relationship includes:
[0158] Determining, according to the candidate mapping frequency combination and the corresponding relationship, a first tactile intensity corresponding to the candidate mapping frequency combination;
[0159] determining a mean square error between the first tactile intensity and the tactile intensity reference value as a first mean square error;
[0160] Determine a mean square error between the candidate mapping frequency combination and the frequency reference value as a second mean square error;
[0161] An error value of the candidate mapping frequency combination is determined according to the sum of the first mean square error and the second mean square error.
[0162] According to one or more embodiments of the present disclosure, a method for generating a tactile signal is provided, wherein the frequency reference value is a resonance frequency of the tactile feedback device.
[0163] According to one or more embodiments of the present disclosure, a method for generating a tactile signal is provided, wherein the candidate mapping frequency combination is determined in the following manner:
[0164] According to the correspondence between the tactile intensity and the frequency, a plurality of frequencies that can make the tactile intensity evenly distributed are determined as the candidate mapping frequency combination; or,
[0165] According to the resonant frequency of the tactile feedback device, a target frequency interval including the resonant frequency is determined, and a group of frequencies is determined from the target frequency interval as the candidate mapping frequency combination.
[0166] According to one or more embodiments of the present disclosure, a method for generating a tactile signal is provided, wherein the target frequency domain signal is divided into a plurality of sub-bands, and a target energy value of each sub-band is determined, including:
[0167] Dividing the target frequency domain signal into a plurality of sub-bands;
[0168] determining an instantaneous energy value of each of said sub-bands;
[0169] Performing mean filtering on the instantaneous energy values of the sub-bands to obtain a filtered energy value of each of the sub-bands;
[0170] The filtered energy value is normalized to obtain a target energy value for each of the sub-bands.
[0171] According to one or more embodiments of the present disclosure, a method for generating a tactile signal is provided, wherein the method of obtaining a target tactile signal for tactile feedback according to the target frequency combination includes:
[0172] According to the target frequency combination, mapping the target energy value of each sub-band into a tactile signal component respectively;
[0173] The tactile signal components are superimposed to obtain a target tactile signal for tactile feedback.
[0174] According to one or more embodiments of the present disclosure, a method for generating a tactile signal is provided, wherein the target energy value of each sub-band is mapped to a tactile signal component according to the target frequency combination, including:
[0175] For the target energy value of each sub-band, a sinusoidal wave signal with a frequency of the target frequency and an energy of the target energy value is generated according to the target energy value and the target frequency corresponding to the target energy value in the target frequency combination as a tactile signal component corresponding to the target energy value.
[0176] According to one or more embodiments of the present disclosure, a tactile signal generating device is provided, the device comprising:
[0177] A first determination module, used to determine a target frequency domain signal corresponding to a target audio signal to be processed;
[0178] A second determination module, configured to divide the target frequency domain signal into a plurality of sub-bands and determine a target energy value for each of the sub-bands;
[0179] A third determination module is used to determine a target frequency combination that can obtain the best tactile feedback effect on the tactile feedback device from a plurality of candidate mapping frequency combinations;
[0180] The processing module is used to obtain a target tactile signal for tactile feedback according to the target frequency combination.
[0181] According to one or more embodiments of the present disclosure, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processing device, the steps of the tactile signal generating method provided by any embodiment of the present disclosure are implemented.
[0182] According to one or more embodiments of the present disclosure, there is provided an electronic device, including:
[0183] a storage device having at least one computer program stored thereon;
[0184] At least one processing device is used to execute the at least one computer program in the storage device to implement the steps of the tactile signal generating method provided by any embodiment of the present disclosure.
[0185] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0186] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0187] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A method for generating a tactile signal, It is characterized in that The method comprises: Determining a target frequency domain signal corresponding to the target audio signal to be processed; Dividing the target frequency domain signal into a plurality of sub-bands, and determining a target energy value for each of the sub-bands; Determining, from a plurality of candidate mapping frequency combinations, a target frequency combination that can obtain an optimal tactile feedback effect on a tactile feedback device; According to the target frequency combination, mapping the target energy value of each sub-band into a tactile signal component respectively; The tactile signal components are superimposed to obtain a target tactile signal for tactile feedback.
2. The method according to claim 1, It is characterized in that The step of determining, from a plurality of candidate mapping frequency combinations, a target frequency combination that can obtain the best tactile feedback effect on the tactile feedback device comprises: Acquire sample data, the sample data comprising a frequency reference value and a tactile intensity reference value determined based on a plurality of audio signal samples; Determine the correspondence between tactile intensity and frequency; For each candidate mapping frequency combination, determining an error value of the candidate mapping frequency combination according to the frequency reference value, the tactile intensity reference value and the corresponding relationship; The candidate mapping frequency combination corresponding to the minimum error value is determined as the target frequency combination.
3. The method according to claim 2, It is characterized in that The step of determining the error value of the candidate mapping frequency combination according to the frequency reference value, the tactile intensity reference value and the corresponding relationship includes: Determining, according to the candidate mapping frequency combination and the corresponding relationship, a first tactile intensity corresponding to the candidate mapping frequency combination; determining a mean square error between the first tactile intensity and the tactile intensity reference value as a first mean square error; Determine a mean square error between the candidate mapping frequency combination and the frequency reference value as a second mean square error; An error value of the candidate mapping frequency combination is determined according to the sum of the first mean square error and the second mean square error.
4. The method according to claim 3, It is characterized in that The frequency reference value is the resonance frequency of the tactile feedback device.
5. The method according to claim 2, It is characterized in that The candidate mapping frequency combination is determined by: According to the correspondence between the tactile intensity and the frequency, a plurality of frequencies that can make the tactile intensity evenly distributed are determined as the candidate mapping frequency combination; or, According to the resonant frequency of the tactile feedback device, a target frequency interval including the resonant frequency is determined, and a group of frequencies is determined from the target frequency interval as the candidate mapping frequency combination.
6. The method according to claim 1, It is characterized in that The step of dividing the target frequency domain signal into a plurality of sub-bands and determining a target energy value of each sub-band includes: Dividing the target frequency domain signal into a plurality of sub-bands; determining an instantaneous energy value of each of said sub-bands; Performing mean filtering on the instantaneous energy values of the sub-bands to obtain a filtered energy value of each of the sub-bands; The filtered energy value is normalized to obtain a target energy value for each of the sub-bands.
7. The method according to claim 1, It is characterized in that The step of mapping the target energy value of each sub-band into a tactile signal component according to the target frequency combination comprises: For the target energy value of each sub-band, a sinusoidal wave signal with a frequency of the target frequency and an energy of the target energy value is generated according to the target energy value and the target frequency corresponding to the target energy value in the target frequency combination as a tactile signal component corresponding to the target energy value.
8. A tactile signal generating device, It is characterized in that The device comprises: A first determination module, used to determine a target frequency domain signal corresponding to a target audio signal to be processed; A second determination module, configured to divide the target frequency domain signal into a plurality of sub-bands and determine a target energy value for each of the sub-bands; A third determination module is used to determine a target frequency combination that can obtain the best tactile feedback effect on the tactile feedback device from a plurality of candidate mapping frequency combinations; The processing module is used to map the target energy value of each sub-band into a tactile signal component according to the target frequency combination, and to superimpose the tactile signal components to obtain a target tactile signal for tactile feedback.
9. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processing device, the steps of the method described in any one of claims 1 to 7 are implemented.
10. An electronic device, It is characterized in that include: a storage device having at least one computer program stored thereon; At least one processing device, configured to execute the at least one computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.
Citation Information
Cited By
Tactile signal generation method and apparatus, readable medium, and electronic device
EP4524687A1
Tactile signal generation method, readable medium, and electronic device
US12676057B2
Tactile signal generation method and apparatus, readable medium, and electronic device
WO2023217224A1
