CN112711330A - Vibration effect realization method, device, equipment and medium - Google Patents

Vibration effect realization method, device, equipment and medium Download PDF

Info

Publication number
CN112711330A
CN112711330A CN202011565359.5A CN202011565359A CN112711330A CN 112711330 A CN112711330 A CN 112711330A CN 202011565359 A CN202011565359 A CN 202011565359A CN 112711330 A CN112711330 A CN 112711330A
Authority
CN
China
Prior art keywords
value
preference
quantization
vibration
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011565359.5A
Other languages
Chinese (zh)
Other versions
CN112711330B (en
Inventor
郑亚军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AAC Optoelectronic Changzhou Co Ltd
Science and Education City Branch of AAC New Energy Development Changzhou Co Ltd
Original Assignee
AAC Optoelectronic Changzhou Co Ltd
Science and Education City Branch of AAC New Energy Development Changzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by AAC Optoelectronic Changzhou Co Ltd, Science and Education City Branch of AAC New Energy Development Changzhou Co Ltd filed Critical AAC Optoelectronic Changzhou Co Ltd
Priority to CN202011565359.5A priority Critical patent/CN112711330B/en
Publication of CN112711330A publication Critical patent/CN112711330A/en
Application granted granted Critical
Publication of CN112711330B publication Critical patent/CN112711330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a method for realizing a vibration effect, which comprises the following steps: and providing preference selection options for different vibration effects for the user so as to meet the diversified requirements of the user, and converting the input preference selection into a preference quantized value. And simultaneously, the prelude type and the beat type which are analyzed and extracted by combining the audio features to be processed are respectively converted to obtain a prelude quantization value and a rhythm quantization value. And then calculating an effect type value according to the preference quantization value, the prelude quantization value and the rhythm quantization value, wherein the effect type value can adjust a basic vibration signal corresponding to the audio to be processed to generate a target excitation signal meeting the vibration type requirement of the user, and the target excitation signal drives equipment to vibrate so as to provide the user with a desired vibration effect. Furthermore, a vibration effect realization apparatus, a computer device and a storage medium are proposed.

Description

Vibration effect realization method, device, equipment and medium
Technical Field
The invention relates to the technical field of tactile feedback, in particular to a vibration effect realization method, a device, equipment and a medium.
Background
The haptic feedback function of electronic devices is receiving more and more attention in modern society. The haptic feedback function can be applied to a plurality of scenes such as videos, music and games, and the rich haptic effect greatly improves the sensory experience of the user.
However, the tactile experience is a subjective feeling, and is inevitably different from person to person during the application of the product. The same vibration effect, seen by different experientials, is different in response. The device is used for carrying out vibration with proper vibration length, which is one of common feedback requirements of users, wherein the short vibration can enable the user to feel the vibration effect to be crisp, and the long vibration can enable the user to feel the vibration effect to have continuous feeling. Therefore, how to make the vibrator vibrate with a proper vibration length is an urgent problem to be solved.
Disclosure of Invention
In view of the above, there is a need to provide a method, an apparatus, a device and a medium for implementing vibration effect that meet the user's demands for different vibration types.
A method of achieving a vibratory effect, the method comprising:
acquiring at least one input preference selection, and performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection;
identifying a prelude type and a beat type of audio to be processed, quantizing the prelude type to obtain a prelude quantized value corresponding to the prelude type, and quantizing the beat type to obtain a beat quantized value corresponding to the beat type;
performing quantitative calculation on the preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value of the audio to be processed;
and converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting equipment to vibrate by using the target excitation signal.
In one embodiment, the preference selection comprises: at least one of scene preference selection, curvy preference selection, long and short vibration preference selection and extreme preference selection;
then, the performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection includes:
acquiring a target quantization relation corresponding to each preference selection;
if the preference selection comprises scene preference selection, selecting a corresponding target quantization relation according to the scene preference, and determining a scene preference quantization value corresponding to the scene preference selection;
if the preference selection comprises a curved wind preference selection, selecting a corresponding target quantization relation according to the curved wind preference, and determining a curved wind preference quantization value corresponding to the curved wind preference selection;
if the preference selection comprises long and short vibration preference selection, determining a long and short vibration preference quantization value corresponding to the long and short vibration preference selection according to the target quantization relation corresponding to the long and short vibration preference selection;
and if the preference selection comprises extreme preference selection, determining an extreme preference quantization value corresponding to the extreme preference selection according to the target quantization relationship corresponding to the extreme preference selection.
In one embodiment, the performing quantization calculation on the preference quantization value, the prelude quantization value, and the beat quantization value to obtain an effect type quantization value of the audio to be processed includes:
determining a weighted quantization value in the curved wind preference quantization value and the long and short vibration preference quantization value;
and carrying out quantitative calculation on the weighted quantitative value, the extreme preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain the effect type quantitative value.
In one embodiment, the formula for performing quantization calculation on the weighted quantization value, the extreme preference quantization value, the prelude quantization value, and the beat quantization value is:
Figure BDA0002860473430000021
wherein alpha is1Preference quantization value, α, for the scene2For said curve preference quantization value, alpha3For the long and short ringing preference quantization value, α4For the extreme preference quantization value, β1Quantizing the value, β, for the prelude2For the beat quantization value, m1、m2、m3、m4And m5Is a preset coefficient.
In one embodiment, the generating a target excitation signal according to the base vibration signal and the effect type value includes:
identifying melody points in the base vibration signal, the melody points including long vibration melody points and short vibration melody points;
when the effect type value is an extreme long vibration type value, performing long vibration processing on each short vibration melody point to generate a target excitation signal; or the like, or, alternatively,
and when the effect type value is an extreme short vibration type value, performing short vibration processing on each long vibration melody point to generate a target excitation signal.
In one embodiment, after the identifying the melody point in the base vibration signal, the method further includes:
and adjusting the vibration duration of each melody point according to the type value.
In one embodiment, the identifying the type of prelude and the type of beat of the audio to be processed includes:
and carrying out characteristic analysis on the audio to be processed, identifying a prelude and a non-prelude of the audio to be processed, and identifying non-rephotography, secondary rephotography and rephotography in the audio to be processed.
A vibration effect realization apparatus, said apparatus comprising:
the device comprises a first quantized value acquisition module, a second quantized value acquisition module and a third quantized value acquisition module, wherein the first quantized value acquisition module is used for acquiring at least one preference selection which is input, and quantizing the at least one preference selection to obtain a preference quantized value corresponding to each preference selection;
the second quantization value acquisition module is used for identifying a prelude type and a beat type of the audio to be processed, quantizing the prelude type to obtain a prelude quantization value corresponding to the prelude type, and quantizing the beat type to obtain a beat quantization value corresponding to the beat type;
the quantization calculation module is used for performing quantization calculation on the preference quantization value, the prelude quantization value and the beat quantization value to obtain an effect type quantization value of the audio to be processed;
and the vibration module is used for converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting equipment to vibrate by using the target excitation signal.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring at least one input preference selection, and performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection;
identifying a prelude type and a beat type of audio to be processed, quantizing the prelude type to obtain a prelude quantized value corresponding to the prelude type, and quantizing the beat type to obtain a beat quantized value corresponding to the beat type;
performing quantitative calculation on the preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value of the audio to be processed;
and converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting equipment to vibrate by using the target excitation signal.
A vibration effect realization apparatus comprising a memory and a processor, said memory storing a computer program which, when executed by said processor, causes said processor to carry out the steps of:
acquiring at least one input preference selection, and performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection;
identifying a prelude type and a beat type of audio to be processed, quantizing the prelude type to obtain a prelude quantized value corresponding to the prelude type, and quantizing the beat type to obtain a beat quantized value corresponding to the beat type;
performing quantitative calculation on the preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value of the audio to be processed;
and converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting equipment to vibrate by using the target excitation signal.
The invention provides a method, a device, equipment and a medium for realizing vibration effects, which are provided for users to select options according to different preferences of the vibration effects so as to meet the diversified requirements of the users and convert the input preference selections into preference quantized values. And simultaneously, the prelude type and the beat type which are analyzed and extracted by combining the audio features to be processed are respectively converted to obtain a prelude quantization value and a rhythm quantization value. And then calculating an effect type value according to the preference quantization value, the prelude quantization value and the rhythm quantization value, wherein the effect type value can adjust a basic vibration signal corresponding to the audio to be processed to generate a target excitation signal meeting the vibration type requirement of the user, and the target excitation signal drives equipment to vibrate so as to provide the user with a desired vibration effect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a schematic flow chart of a method for achieving a vibration effect according to an embodiment;
FIG. 2 is a schematic diagram of audio to be processed in one embodiment;
FIG. 3 is a flow diagram of quantization computation in one embodiment;
FIG. 4 is a diagram illustrating a melody point of jolting in one embodiment;
FIG. 5 is a diagram illustrating a short melody point according to an embodiment;
FIG. 6 is a schematic structural diagram of a vibration effect achieving apparatus according to an embodiment;
fig. 7 is a block diagram showing the structure of a vibration effect realization apparatus in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, fig. 1 is a schematic flow chart of a method for implementing a vibration effect in an embodiment, where the method for implementing a vibration effect includes the steps of:
step 102, obtaining at least one input preference selection, and performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection.
In particular, preferences that may be entered by a user may be displayed on a display interface of the device and used to adjust the vibration effects presented by the audio to be processed. Of course, the user may not be able to fully specify all his preferences at the beginning of the selection of the preferences, and thus only a portion of the preferences are selectively entered. The corresponding preference quantization value is obtained by performing quantization processing on the preference selection input by the user, and the quantization processing is to unify indexes of different units or orders of magnitude in the same numerical value range, so that the indexes can be conveniently weighted or compared and the like. And a default preference quantification value or a last preference quantification value of the user is selected for the remaining preference selections. It will be appreciated that if the user is not satisfied with the vibration effect ultimately presented by the device, the process may be returned to re-modify the preference until the user is satisfied with the vibration effect.
In a particular embodiment, the preference selection requiring input includes at least one of a scene preference selection, a music preference selection, a long short duration preference selection, and an extreme preference selection. The scene preference selection is the selection of a user for a specific scene applied when the device vibrates, and specifically may include the selection of scenes such as games, ringtones, videos, songs, and the like. The selection of the song preference is the selection of the audio style by the user, and particularly can comprise the selection of the styles of balladry, rap, pop, electric voice and the like. The long and short vibration preference selection is the preference of a user on the vibration type in the finally and integrally presented vibration effect, the long and short vibration preference selection can be a range value, when the long and short vibration preference value is larger, the part which is expected to be occupied by long vibration is more, and when the long and short vibration preference value is smaller, the part which is expected to be occupied by short vibration is more. The extreme preference selection is a selection that the user desires the vibration effect to be all long vibrations, or desires the vibration effect to be all short vibrations.
There is a particular quantization relationship between the preference selection and the preference quantization value from which the preference selection can be converted to a corresponding preference quantization value.
See table 1:
Figure BDA0002860473430000061
Figure BDA0002860473430000071
as shown in table 1, the device stores a preset target quantization relationship for each preference selection, and when any one of the preference selections is subjected to quantization processing, a corresponding preference quantization value can be obtained from the table. In the present embodiment, when the scene preference is selected as "game" or "ring", the scene preference quantization value is 0, and when the scene preference is selected as "video" or "song", the scene preference quantization value is 1; when the preference of the song is selected as slow rhythm song wind such as 'balladry', the preference quantized value of the song wind is small, and when the preference of the song wind is selected as fast rhythm song wind such as 'rap', the preference quantized value of the song wind is large; when the long and short ringing preference selection and the extreme preference selection are a certain input value between 0 and 1, the corresponding long and short ringing preference quantized value and extreme preference quantized value are also the same this input value. Other forms may also exist for setting the quantization relationship, for example, the selection of the long and short ringing preference may be 5 levels from 1 to 5, each level has a corresponding long and short ringing preference quantization value, and of course, other forms are also possible, and no specific limitation is made here.
And 104, identifying the prelude type and the beat type of the audio to be processed, quantizing the prelude type to obtain a prelude quantized value corresponding to the prelude type, and quantizing the beat type to obtain a beat quantized value corresponding to the beat type.
The audio to be processed may be various forms of audio, such as music audio, game audio, ring tone audio, and the like, and is not limited specifically herein.
In one embodiment, feature analysis is performed on the audio to be processed, whether each melody point in the audio to be processed belongs to a prelude part or a non-prelude part is identified, and whether each melody point in the audio to be processed belongs to non-rephotography or secondary rephotography or rephotography is identified. The feature recognition algorithm used in this section belongs to the existing algorithms, and therefore, will not be described in detail. Referring to fig. 2, fig. 2 is a schematic diagram of audio to be processed in an embodiment, and the prelude part, the non-rephotograph, the secondary rephotograph and the rephotograph are shown in fig. 2.
As well as the specific quantization relationship between the preference selection and the preference quantization value, the specific quantization relationship also exists between the prelude type and the prelude quantization value of each melody point, and the specific quantization relationship also exists between the beat type and the beat quantization value of each melody point.
See table 2:
Figure BDA0002860473430000081
as shown in table 2, the melody point belonging to the "non-prelude" has a prelude quantization value of 0, and the melody point belonging to the "prelude" has a prelude quantization value of 1. The beat quantization value of the melody point belonging to the "non-rephotography" is 0, the beat quantization value of the melody point belonging to the "next rephotography" is 0.5, and the beat quantization value of the melody point belonging to the "rephotography" is 1. Also, the above quantization relationship is taken as an example form, and the present embodiment includes, but is not limited to, the above quantization relationship.
And 106, carrying out quantitative calculation on the preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value of the audio to be processed.
In one embodiment, the quantization calculation process is: firstly, determining a weighted quantization value in the curved wind preference quantization value and the long and short vibration preference quantization value. Those belonging to the weighted quantization values can be used for subsequent quantization calculations, while those not belonging to the weighted quantization values do not have to participate in the subsequent quantization calculations. And then, carrying out quantitative calculation on the weighted quantitative value, the extreme preference quantitative value, the prelude quantitative value and the beat quantitative value through a preset quantitative calculation formula to obtain an effect type quantitative value P. Illustratively, the quantization calculation formula is specifically:
Figure BDA0002860473430000082
wherein alpha is1To the scene preference quantization value, α2For the quantized value of the camber preference, alpha3For the long and short ringing preference quantization value, alpha4For extreme preference of the quantized value, β1To quantify the value of the prelude, beta2For beat quantization value, m1、m2、m3、m4And m5Is a preset coefficient. Preferably, m is1Has a value of 3, m2Has a value of 0.99, m3Has a value of 2, m4Has a value of 3.01, m5The value of (2).
Referring to fig. 3, fig. 3 is a flow chart illustrating quantization calculation in one embodiment. Illustratively, the scene preference quantization value α1Is 0, the quantization value of the prelude beta1When 0, the weighted quantization value comprises a curvature preference quantization value alpha2And long and short vibration preference value alpha3. The effect type quantization value Pactual satisfies
Figure BDA0002860473430000091
This actually takes into account only the part in which the calculations are needed.
And 108, converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting the equipment to vibrate by using the target excitation signal.
See table 3:
Figure BDA0002860473430000092
as shown in table 3, there is a specific quantization relationship between the effect type quantization value and the effect type value, and when the effect type quantization value is an input value between 0 and 1, the corresponding effect type value is the same input value. Also, the above quantization relationship is taken as an example form, and the present embodiment includes, but is not limited to, the above quantization relationship.
In one embodiment, a base vibration signal corresponding to the audio to be processed is retrieved from the effect library, wherein the melody points in the base vibration signal include a long vibration melody point and a short vibration melody point, see fig. 4 and 5, fig. 4 is a schematic diagram of the long vibration melody point in one embodiment, and fig. 5 is a schematic diagram of the short vibration melody point in one embodiment. It can be seen that the long vibration melody point also has a tail, and the long vibration melody point and the short vibration melody point have a difference in vibration duration.
When α is shown in FIG. 3 and Table 34When 0 is taken, the effect type value is
Figure BDA0002860473430000093
Meanwhile, the method belongs to an extreme short vibration type value, and the time length of each long vibration melody point in the basic vibration signal is reduced so as to meet the time length requirement of the short vibration melody point; when alpha is4When taking 1, the effect type value is
Figure BDA0002860473430000101
In between, it means that there is no need to change the vibration type of the melody point in the audio to be processed; when alpha is4When taking 2, the effect type value is
Figure BDA0002860473430000102
Meanwhile, the method belongs to an extreme long vibration type value, and the time length of each short vibration melody point in the basic vibration signal is increased so as to meet the time length requirement of the long vibration melody point.
Further, the effect type value determines the degree of adjustment of the vibration time length in addition to determining whether to change the vibration type of the melody point. Illustratively, the value [0, 1 ] may be taken]Mapping to the adjustment degree of 0-200%, when the effect type value is
Figure BDA0002860473430000103
Adjusting the vibration duration T of the original melody point to 0.5T; when the effect type value is
Figure BDA0002860473430000104
The vibration time period T of the original melody point is adjusted to 1.5T. Similar vibration duration adjustment is also performed for the remaining melody points in the base vibration signal, thereby generating the target excitation signal. The target excitation signal is used for exciting the equipment to vibrate, and the user can obtain the vibration effect desired by the user.
The method for realizing the vibration effect provides the user with preference selection options aiming at different vibration effects so as to meet the diversified requirements of the user and converts the input preference selection into the preference quantization value. And simultaneously, the prelude type and the beat type which are analyzed and extracted by combining the audio features to be processed are respectively converted to obtain a prelude quantization value and a rhythm quantization value. And then calculating an effect type value according to the preference quantization value, the prelude quantization value and the rhythm quantization value, wherein the effect type value can adjust a basic vibration signal corresponding to the audio to be processed to generate a target excitation signal meeting the vibration type requirement of the user, and the target excitation signal drives equipment to vibrate so as to provide the user with a desired vibration effect.
In one embodiment, as shown in fig. 6, there is provided a vibration effect realization apparatus including:
a first quantized value obtaining module 602, configured to obtain at least one input preference selection, and perform quantization processing on the at least one preference selection to obtain a preference quantized value corresponding to each preference selection;
a second quantized value obtaining module 604, configured to identify a prelude type and a beat type of the audio to be processed, perform quantization processing on the prelude type to obtain a prelude quantized value corresponding to the prelude type, and perform quantization processing on the beat type to obtain a beat quantized value corresponding to the beat type;
the quantization calculation module 606 is configured to perform quantization calculation on the preference quantization value, the prelude quantization value, and the beat quantization value to obtain an effect type quantization value of the audio to be processed;
the vibration module 608 is configured to convert the effect type quantization value into an effect type value, obtain a basic vibration signal corresponding to the audio to be processed, generate a target excitation signal according to the basic vibration signal and the effect type value, and excite the device to vibrate with the target excitation signal.
The vibration effect realization device provides the user with preference selection options aiming at different vibration effects so as to meet the diversified requirements of the user and convert the input preference selection into the preference quantization value. And simultaneously, the prelude type and the beat type which are analyzed and extracted by combining the audio features to be processed are respectively converted to obtain a prelude quantization value and a rhythm quantization value. And then calculating an effect type value according to the preference quantization value, the prelude quantization value and the rhythm quantization value, wherein the effect type value can adjust a basic vibration signal corresponding to the audio to be processed to generate a target excitation signal meeting the vibration type requirement of the user, and the target excitation signal drives equipment to vibrate so as to provide the user with a desired vibration effect.
In an embodiment, the first quantized value obtaining module 602 is specifically configured to: acquiring a target quantization relation corresponding to each preference selection; if the preference selection comprises scene preference selection, selecting a corresponding target quantization relation according to the scene preference, and determining a scene preference quantization value corresponding to the scene preference selection; if the preference selection comprises the selection of the preference of the curved wind, selecting a corresponding target quantization relation according to the preference of the curved wind, and determining a quantization value of the preference of the curved wind corresponding to the selection of the preference of the curved wind; if the preference selection comprises long and short vibration preference selection, selecting a corresponding target quantization relation according to the long and short vibration preference, and determining a long and short vibration preference quantization value corresponding to the long and short vibration preference selection; and if the preference selection comprises extreme preference selection, selecting a corresponding target quantization relation according to the extreme preference, and determining an extreme preference quantization value corresponding to the extreme preference selection.
In an embodiment, the quantization calculation module 606 is specifically configured to: determining a weighted quantization value in the curvy preference quantization value and the long and short vibration preference quantization value; and carrying out quantitative calculation on the weighted quantitative value, the extreme preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value.
In one embodiment, the vibration module 608 is specifically configured to: identifying melody points in the basic vibration signal, wherein the melody points comprise long vibration melody points and short vibration melody points; when the effect type value is an extreme long vibration type value, performing long vibration processing on each short vibration melody point to generate a target excitation signal; or, when the effect type value is the extreme short vibration type value, performing short vibration processing on each long vibration melody point to generate a target excitation signal.
In one embodiment, the vibration module 608 is further specifically configured to: and adjusting the vibration duration of each melody point according to the type value.
In an embodiment, the second quantized value obtaining module 604 is further specifically configured to: and carrying out characteristic analysis on the audio to be processed, identifying the prelude and the non-prelude of the audio to be processed, and identifying non-rephotography, secondary rephotography and rephotography in the audio to be processed.
Fig. 7 is a diagram showing an internal structure of the vibration effect realization apparatus in one embodiment. As shown in fig. 7, the vibration effect realization device includes a processor, a memory, and a network interface connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the vibration effect realization apparatus stores an operating system and may further store a computer program, which, when executed by the processor, causes the processor to realize the vibration effect realization method. The internal memory may also store a computer program, which when executed by the processor, causes the processor to perform the vibration effect implementing method. It will be appreciated by those skilled in the art that the structure shown in figure 7 is a block diagram of only a portion of the structure relevant to the present application and does not constitute a limitation on the vibration effect realization device to which the present application is applied, and that a particular vibration effect realization device may include more or less components than shown in the figures, or combine certain components, or have a different arrangement of components.
A vibration effect realization apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor realizing the following steps when executing the computer program: acquiring at least one input preference selection, and performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection; identifying a prelude type and a beat type of audio to be processed, carrying out quantization processing on the prelude type to obtain a prelude quantization value corresponding to the prelude type, and carrying out quantization processing on the beat type to obtain a beat quantization value corresponding to the beat type; carrying out quantitative calculation on the preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value of the audio to be processed; and converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting the equipment to vibrate by using the target excitation signal.
In one embodiment, quantizing at least one preference selection to obtain a preference quantization value corresponding to each preference selection, includes: acquiring a target quantization relation corresponding to each preference selection; if the preference selection comprises scene preference selection, selecting a corresponding target quantization relation according to the scene preference, and determining a scene preference quantization value corresponding to the scene preference selection; if the preference selection comprises the selection of the preference of the curved wind, selecting a corresponding target quantization relation according to the preference of the curved wind, and determining a quantization value of the preference of the curved wind corresponding to the selection of the preference of the curved wind; if the preference selection comprises long and short vibration preference selection, selecting a corresponding target quantization relation according to the long and short vibration preference, and determining a long and short vibration preference quantization value corresponding to the long and short vibration preference selection; and if the preference selection comprises extreme preference selection, selecting a corresponding target quantization relation according to the extreme preference, and determining an extreme preference quantization value corresponding to the extreme preference selection.
In one embodiment, the performing quantization calculation on the preference quantization value, the prelude quantization value and the beat quantization value to obtain an effect type quantization value of the audio to be processed includes: determining a weighted quantization value in the curvy preference quantization value and the long and short vibration preference quantization value; and carrying out quantitative calculation on the weighted quantitative value, the extreme preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value.
In one embodiment, generating the target excitation signal based on the base vibration signal and the effect type value includes: identifying melody points in the basic vibration signal, wherein the melody points comprise long vibration melody points and short vibration melody points; when the effect type value is an extreme long vibration type value, performing long vibration processing on each short vibration melody point to generate a target excitation signal; or, when the effect type value is the extreme short vibration type value, performing short vibration processing on each long vibration melody point to generate a target excitation signal.
In one embodiment, after identifying the melody point in the base vibration signal, the method further comprises: and adjusting the vibration duration of each melody point according to the type value.
In one embodiment, identifying a prelude type and a beat type of audio to be processed includes: and carrying out characteristic analysis on the audio to be processed, identifying the prelude and the non-prelude of the audio to be processed, and identifying non-rephotography, secondary rephotography and rephotography in the audio to be processed.
A computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of: acquiring at least one input preference selection, and performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection; identifying a prelude type and a beat type of audio to be processed, carrying out quantization processing on the prelude type to obtain a prelude quantization value corresponding to the prelude type, and carrying out quantization processing on the beat type to obtain a beat quantization value corresponding to the beat type; carrying out quantitative calculation on the preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value of the audio to be processed; and converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting the equipment to vibrate by using the target excitation signal.
In one embodiment, quantizing at least one preference selection to obtain a preference quantization value corresponding to each preference selection, includes: acquiring a target quantization relation corresponding to each preference selection; if the preference selection comprises scene preference selection, selecting a corresponding target quantization relation according to the scene preference, and determining a scene preference quantization value corresponding to the scene preference selection; if the preference selection comprises the selection of the preference of the curved wind, selecting a corresponding target quantization relation according to the preference of the curved wind, and determining a quantization value of the preference of the curved wind corresponding to the selection of the preference of the curved wind; if the preference selection comprises long and short vibration preference selection, selecting a corresponding target quantization relation according to the long and short vibration preference, and determining a long and short vibration preference quantization value corresponding to the long and short vibration preference selection; and if the preference selection comprises extreme preference selection, selecting a corresponding target quantization relation according to the extreme preference, and determining an extreme preference quantization value corresponding to the extreme preference selection.
In one embodiment, the performing quantization calculation on the preference quantization value, the prelude quantization value and the beat quantization value to obtain an effect type quantization value of the audio to be processed includes: determining a weighted quantization value in the curvy preference quantization value and the long and short vibration preference quantization value; and carrying out quantitative calculation on the weighted quantitative value, the extreme preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value.
In one embodiment, generating the target excitation signal based on the base vibration signal and the effect type value includes: identifying melody points in the basic vibration signal, wherein the melody points comprise long vibration melody points and short vibration melody points; when the effect type value is an extreme long vibration type value, performing long vibration processing on each short vibration melody point to generate a target excitation signal; or, when the effect type value is the extreme short vibration type value, performing short vibration processing on each long vibration melody point to generate a target excitation signal.
In one embodiment, after identifying the melody point in the base vibration signal, the method further comprises: and adjusting the vibration duration of each melody point according to the type value.
In one embodiment, identifying a prelude type and a beat type of audio to be processed includes: and carrying out characteristic analysis on the audio to be processed, identifying the prelude and the non-prelude of the audio to be processed, and identifying non-rephotography, secondary rephotography and rephotography in the audio to be processed.
It should be noted that the method, the apparatus, the device and the computer-readable storage medium for implementing the vibration effect belong to a general inventive concept, and the contents in the embodiments of the method, the apparatus, the device and the computer-readable storage medium for implementing the vibration effect are mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for achieving a vibration effect, the method comprising:
acquiring at least one input preference selection, and performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection;
identifying a prelude type and a beat type of audio to be processed, quantizing the prelude type to obtain a prelude quantized value corresponding to the prelude type, and quantizing the beat type to obtain a beat quantized value corresponding to the beat type;
performing quantitative calculation on the preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain an effect type quantitative value of the audio to be processed;
and converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting equipment to vibrate by using the target excitation signal.
2. The method of claim 1, wherein the preference selection comprises: at least one of scene preference selection, curvy preference selection, long and short vibration preference selection and extreme preference selection;
then, the performing quantization processing on the at least one preference selection to obtain a preference quantization value corresponding to each preference selection includes:
acquiring a target quantization relation corresponding to each preference selection;
if the preference selection comprises scene preference selection, selecting a corresponding target quantization relation according to the scene preference, and determining a scene preference quantization value corresponding to the scene preference selection;
if the preference selection comprises a curved wind preference selection, selecting a corresponding target quantization relation according to the curved wind preference, and determining a curved wind preference quantization value corresponding to the curved wind preference selection;
if the preference selection comprises long and short vibration preference selection, determining a long and short vibration preference quantization value corresponding to the long and short vibration preference selection according to the target quantization relation corresponding to the long and short vibration preference selection;
and if the preference selection comprises extreme preference selection, determining an extreme preference quantization value corresponding to the extreme preference selection according to the target quantization relationship corresponding to the extreme preference selection.
3. The method according to claim 1, wherein the performing quantization computation on the preference quantization value, the prelude quantization value and the beat quantization value to obtain an effect type quantization value of the audio to be processed comprises:
determining a weighted quantization value in the curved wind preference quantization value and the long and short vibration preference quantization value;
and carrying out quantitative calculation on the weighted quantitative value, the extreme preference quantitative value, the prelude quantitative value and the beat quantitative value to obtain the effect type quantitative value.
4. The method according to claim 3, wherein the formula for performing quantization calculation on the weighted quantization value, the extreme preference quantization value, the prelude quantization value, and the beat quantization value is:
Figure FDA0002860473420000021
wherein alpha is1Preference quantization value, α, for the scene2For said curve preference quantization value, alpha3For the long and short ringing preference quantization value, α4For the extreme preference quantization value, β1Quantizing the value, β, for the prelude2For the beat quantization value, m1、m2、m3、m4And m5Is a preset coefficient.
5. The method of claim 1, wherein generating a target excitation signal based on the base vibration signal and the effect type value comprises:
identifying melody points in the base vibration signal, the melody points including long vibration melody points and short vibration melody points;
when the effect type value is an extreme long vibration type value, performing long vibration processing on each short vibration melody point to generate a target excitation signal; or the like, or, alternatively,
and when the effect type value is an extreme short vibration type value, performing short vibration processing on each long vibration melody point to generate a target excitation signal.
6. The method of claim 5, further comprising, after the identifying melody points in the base vibration signal:
and adjusting the vibration duration of each melody point according to the type value.
7. The method according to claim 1, wherein the identifying a type of prelude and a type of beat for the audio to be processed comprises:
and carrying out characteristic analysis on the audio to be processed, identifying a prelude and a non-prelude of the audio to be processed, and identifying non-rephotography, secondary rephotography and rephotography in the audio to be processed.
8. A vibration effect realization apparatus, characterized in that said apparatus comprises:
the device comprises a first quantized value acquisition module, a second quantized value acquisition module and a third quantized value acquisition module, wherein the first quantized value acquisition module is used for acquiring at least one preference selection which is input, and quantizing the at least one preference selection to obtain a preference quantized value corresponding to each preference selection;
the second quantization value acquisition module is used for identifying a prelude type and a beat type of the audio to be processed, quantizing the prelude type to obtain a prelude quantization value corresponding to the prelude type, and quantizing the beat type to obtain a beat quantization value corresponding to the beat type;
the quantization calculation module is used for performing quantization calculation on the preference quantization value, the prelude quantization value and the beat quantization value to obtain an effect type quantization value of the audio to be processed;
and the vibration module is used for converting the effect type quantization value into an effect type value, acquiring a basic vibration signal corresponding to the audio to be processed, generating a target excitation signal according to the basic vibration signal and the effect type value, and exciting equipment to vibrate by using the target excitation signal.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A vibration effect realization device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
CN202011565359.5A 2020-12-25 2020-12-25 Vibration effect realization method, device, equipment and medium Active CN112711330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011565359.5A CN112711330B (en) 2020-12-25 2020-12-25 Vibration effect realization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011565359.5A CN112711330B (en) 2020-12-25 2020-12-25 Vibration effect realization method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112711330A true CN112711330A (en) 2021-04-27
CN112711330B CN112711330B (en) 2023-03-31

Family

ID=75546679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011565359.5A Active CN112711330B (en) 2020-12-25 2020-12-25 Vibration effect realization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112711330B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023197375A1 (en) * 2022-04-13 2023-10-19 瑞声声学科技(深圳)有限公司 Vibration control method and device, and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777747A (en) * 2018-08-09 2018-11-09 瑞声科技(新加坡)有限公司 A kind of method for oscillating, mobile terminal and computer readable storage medium
CN109545249A (en) * 2018-11-23 2019-03-29 广州酷狗计算机科技有限公司 A kind of method and device handling music file
CN109887528A (en) * 2019-02-15 2019-06-14 上海艾为电子技术股份有限公司 Motor is with the method and device of audio frequency vibration, storage medium and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777747A (en) * 2018-08-09 2018-11-09 瑞声科技(新加坡)有限公司 A kind of method for oscillating, mobile terminal and computer readable storage medium
CN109545249A (en) * 2018-11-23 2019-03-29 广州酷狗计算机科技有限公司 A kind of method and device handling music file
CN109887528A (en) * 2019-02-15 2019-06-14 上海艾为电子技术股份有限公司 Motor is with the method and device of audio frequency vibration, storage medium and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023197375A1 (en) * 2022-04-13 2023-10-19 瑞声声学科技(深圳)有限公司 Vibration control method and device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN112711330B (en) 2023-03-31

Similar Documents

Publication Publication Date Title
JP6893246B2 (en) Voice conversion methods, computer equipment, and computer programs
US7711129B2 (en) Method and system for approximating graphic equalizers using dynamic filter order reduction
JP6098654B2 (en) Masking sound data generating apparatus and program
CN105957515A (en) Voice Synthesis Method, Voice Synthesis Device, Medium for Storing Voice Synthesis Program
CN112711330B (en) Vibration effect realization method, device, equipment and medium
JP2003015666A (en) Play list generating device, audio information providing device, audio information providing system and its method, program, and recording medium
US11842719B2 (en) Sound processing method, sound processing apparatus, and recording medium
JPH0863188A (en) Speech synthesizing device
US10515618B2 (en) Waveform data structure, waveform data storage device, waveform data storing method, waveform data extracting device, waveform data extracting method and electronic musical instrument
US8583437B2 (en) Speech synthesis with incremental databases of speech waveforms on user terminals over a communications network
CN105719640B (en) Speech synthesizing device and speech synthesizing method
CN112698722B (en) Vibration effect realization method, device, equipment and medium
KR100687683B1 (en) Apparatus and method for generating performance control data and storage medium for storing program for executing the method therein
CN115177956A (en) Music game score generation method, storage medium and terminal
CN117351120B (en) 3D game animation generation method
JP6604486B2 (en) Data storage device, data retrieval device, electronic musical instrument and method
CN108109609B (en) Audio and video recording method and device
US20100058186A1 (en) Reproducing apparatus and reproducing method
JP6299141B2 (en) Musical sound information generating apparatus and musical sound information generating method
CN117390217B (en) Method, device, equipment and medium for determining song segments
JP7459215B2 (en) Search system, search method and search program
CN112669873B (en) Vibration frequency design method based on music frequency
CN104464717B (en) Speech synthesizing device
CN113742513B (en) Song list adjusting method, device, equipment and computer readable storage medium
CN111223471A (en) Ringtone generation method, device, storage medium and processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant