Motor control method, control system and control chip

By acquiring and processing stereo audio data in mobile games, we can determine the source of gunshots and control the motor vibration only when the player shoots by himself. This solves the problem in the existing technology that the sound of gunshots fired by others also vibrates, and improves the personalized feedback of shooting games. and fun.

CN112657179BActive Publication Date: 2024-09-27SHANGHAI AWINIC TECH CO LTD
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN202011622951.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2024-09-27
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

Existing technology cannot produce vibrations in mobile phone shooting games only when the player fires his own gunshots, causing other players to fire gunshots that will also cause the motor to vibrate, failing to meet players' needs for personalized game feedback.

Method used

By obtaining the stereo audio data of the current game, it is determined whether it contains a specific voice. If it is the player's own gunshot, the motor vibration is controlled when the gunshot is played, and the gunshot is determined using audio data grouping, low-pass filtering processing and peak point identification technology. source to achieve precise control of the motor.

Benefits of technology

It realizes that the motor vibrates only when the player shoots by himself, shielding the false vibration caused by the sound of other people's shooting, and enhancing the fun of human-computer interaction and shooting games.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112657179B
    Figure CN112657179B
Patent Text Reader

Abstract

The present invention provides a motor control method, a control system and a control chip, comprising: obtaining stereo audio data of a currently running game; determining whether the stereo audio data contains a specific voice; if the specific voice is contained, determining whether the specific voice is a first specific voice, wherein the specific voice includes a gunshot, and the first specific voice includes the gunshot of the player of the currently running game; if the specific voice is the first specific voice, when the first specific voice is played, controlling the motor to vibrate, so that the motor can be controlled to vibrate only when the player himself shoots a gunshot, thereby shielding the false vibration caused by the gunshot of others, enhancing the human-computer interaction, and improving the fun of the gunshot vibration of shooting games.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor control, and more specifically, to a motor control method, a control system and a control chip. Background Art

[0002] As a symbol of technological progress in modern society, mobile phones have become a tool that almost everyone must have, and mobile games have gradually become a daily leisure and entertainment activity for people. Among them, shooting mobile games, players compete with other players by controlling the movement and shooting of characters. In this process, players can not only get certain game feedback from the game sound broadcast by the speakers, but also get more dimensional game feedback from the vibration of the mobile phone with the sound of gunfire.

[0003] However, the disadvantage of the prior art is that during the game competition process, not only the player's own gunshot will generate corresponding vibrations, but the gunshots of other players will also generate vibrations, which cannot meet the player's demand for only the vibration generated by his own gunshot. Summary of the invention

[0004] In view of this, the present invention provides a motor control method, a control system and a control chip, so as to control the motor to generate corresponding vibration only when the player shoots the gun himself.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] A motor control method, comprising:

[0007] Get the stereo audio data of the currently running game;

[0008] Determining whether the stereo audio data contains a specific voice;

[0009] If a specific voice is included, determining whether the specific voice is a first specific voice, the specific voice includes a gunshot, and the first specific voice includes the gunshot of the player currently running the game;

[0010] If it is the first specific voice, when the first specific voice is played, the motor is controlled to vibrate.

[0011] Optionally, before determining whether the stereo audio data contains a specific voice, the method further includes:

[0012] Divide the stereo audio data into a first group of data, a second group of data and a third group of data, wherein the first group of data is the one with the smallest absolute value between the left channel data and the right channel data in the stereo audio data, the second group of data is the left channel data in the stereo audio data, and the third group of data is the right channel data in the stereo audio data;

[0013] Determining whether the stereo audio data contains a specific voice includes: determining whether the stereo audio data contains a specific voice according to the first set of data;

[0014] Determining whether the specific voice is the first specific voice includes: determining whether the specific voice is the first specific voice according to the second set of data and the third set of data.

[0015] Optionally, before determining whether the stereo audio data contains a specific voice according to the first group of data, the method further includes:

[0016] Dividing the first group of data, the second group of data and the third group of data into multiple frames of data, wherein every N data is a frame, and N is a natural number greater than 1;

[0017] Performing low-pass filtering on each frame of data in the first group of data, the second group of data, and the third group of data, and retaining data in a frequency band where a specific voice is located in each frame of data;

[0018] The absolute values ​​of N data in each frame of the first set of data, the second set of data and the third set of data after low-pass filtering are taken and summed, and the average value of the N data in each frame of the first set of data, the second set of data and the third set of data is calculated.

[0019] Optionally, judging whether the stereo audio data contains specific speech according to the first group of data includes:

[0020] Determine that the point where the i-th frame of data in the first group of data is a fast wave peak point, i≥0, then the i-th frame of data contains the specific voice;

[0021] Determine that the point where the i-th frame data in the first group of data is located is not a fast peak point, but the point where the i-1-th frame data in the first group of data is located is a peak point, i≥1, then the i-1-th frame data contains the specific voice;

[0022] If the i-th frame data or the i-1-th frame data includes the specific voice, the stereo audio data includes the specific voice.

[0023] Optionally, determining whether the point where the i-th frame data in the first group of data is located is a fast wave peak point includes:

[0024] Determine whether the average value of the i-th frame data in the first set of data is greater than or equal to a first preset value, and whether the average values ​​of the data between the i-th frame data and the adjacent trough points before it in the first set of data are both less than or equal to the first preset value, i≥0;

[0025] If so, the point where the i-th frame data in the first set of data is located is a fast wave peak point.

[0026] Optionally, determining whether it is a trough point includes:

[0027] Determine whether the average value of the i-2th frame data in the first group of data is greater than the average value of the i-1th frame data, and whether the average value of the i-1th frame data is less than or equal to the average value of the i-th frame data. i≥2;

[0028] If so, it is determined that the point where the i-1th frame of data in the first group of data is located is a trough point.

[0029] Optionally, determining whether the (i-1)th frame of data in the first group of data is a peak point includes:

[0030] Determine whether the average value of the i-2th frame data in the first group of data is less than the average value of the i-1th frame data, and whether the average value of the i-1th frame data is greater than or equal to the average value of the i-th frame data. i≥2;

[0031] If so, determine that the point where the i-1th frame of data in the first group of data is located is a peak point.

[0032] Optionally, judging whether the specific voice is the first specific voice according to the second set of data and the third set of data includes:

[0033] Determine whether the specific voice parameter of the j-th frame data is less than a second preset value, and if so, determine that the specific voice in the j-th frame data is the first specific voice;

[0034] Among them, if the average value of the j-th frame data in the second group of data is greater than or equal to the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the second group of data to the average value of the j-th frame data in the third group of data; if the average value of the j-th frame data in the second group of data is less than the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the third group of data to the average value of the j-th frame data in the second group of data.

[0035] Optionally, after determining that the specific voice is the first specific voice, the method further includes:

[0036] The vibration sense of the motor is determined according to the average value of the j-th frame data in the first group of data, so as to control the motor to vibrate with the corresponding vibration sense.

[0037] A motor control system, comprising:

[0038] The audio acquisition module is used to obtain the stereo audio data of the currently running game;

[0039] a voice recognition module, used to determine whether the stereo audio data contains a specific voice and whether the specific voice is a first specific voice, and to output a control instruction, wherein the specific voice includes a gunshot, and the first specific voice includes the gunshot of the player currently running the game;

[0040] A motor driving chip, used for receiving the control instruction and controlling the motor to vibrate;

[0041] The audio power amplifier module is used to receive the stereo audio data acquired by the audio acquisition module and to control the speaker to play the stereo audio data.

[0042] Optionally, the speech recognition module is also used to divide the stereo audio data into a first group of data, a second group of data and a third group of data, the first group of data being the one with the smallest absolute value between the left channel data and the right channel data in the stereo audio data, the second group of data being the left channel data in the stereo audio data, and the third group of data being the right channel data in the stereo audio data, and determining whether the stereo audio data contains a specific speech based on the first group of data, and determining whether the specific speech is the first specific speech based on the second group of data and the third group of data.

[0043] Optionally, before determining whether the stereo audio data contains a specific voice according to the first group of data, the voice recognition module is further used to divide the first group of data, the second group of data and the third group of data into multiple frames of data, perform low-pass filtering on each frame of data in the first group of data, the second group of data and the third group of data, retain the data in the frequency band where the specific voice is located in each frame of data, take the absolute value of N data in each frame of data in the first group of data, the second group of data and the third group of data after the low-pass filtering, and then sum them, and calculate the average value of the N data in each frame of data in the first group of data, the second group of data and the third group of data;

[0044] Wherein, every N data is a frame, and N is a natural number greater than 1.

[0045] Optionally, the speech recognition module is used to determine that the stereo audio data contains the specific speech when the point where the i-th frame data in the first group of data is located is a fast peak point, i≥0, or to determine that the stereo audio data contains the specific speech when the point where the i-th frame data in the first group of data is located is not a fast peak point but the i-1-th frame data in the first group of data is a peak point, i≥1.

[0046] Optionally, the speech recognition module is used to determine that the point where the i-th frame data in the first group of data is located is a fast peak point when the average value of the i-th frame data in the first group of data is greater than or equal to a first preset value, and the average values ​​of the data between the i-th frame data and its previous adjacent trough points in the first group of data are both less than or equal to the first preset value; i≥0.

[0047] Optionally, the speech recognition module is used to determine that the point where the i-1th frame data in the first group of data is located is a trough point when the average value of the i-2th frame data in the first group of data is greater than the average value of the i-1th frame data, and the average value of the i-1th frame data is less than or equal to the average value of the i-th frame data; i≥2.

[0048] Optionally, the speech recognition module is used to determine that the point where the i-1th frame data in the first group of data is located is a peak point when the average value of the i-2th frame data in the first group of data is less than the average value of the i-1th frame data, and the average value of the i-1th frame data is greater than or equal to the average value of the i-th frame data; i≥2.

[0049] Optionally, the speech recognition module is used to determine that the specific speech in the j-th frame data is the first specific speech when the specific speech parameter of the j-th frame data is less than a second preset value;

[0050] Among them, if the average value of the j-th frame data in the second group of data is greater than or equal to the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the second group of data to the average value of the j-th frame data in the third group of data; if the average value of the j-th frame data in the second group of data is less than the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the third group of data to the average value of the j-th frame data in the second group of data.

[0051] Optionally, after determining that the specific voice is the first specific voice, the voice recognition module is also used to determine the vibration of the motor according to the average value of the j-th frame data in the first group of data, so as to control the motor to vibrate with a corresponding vibration through the control instruction.

[0052] A motor control chip includes a processor and a memory;

[0053] The memory is used to store computer-executable instructions;

[0054] The processor is configured to execute any of the motor control methods described above.

[0055] Compared with the prior art, the technical solution provided by the present invention has the following advantages:

[0056] The motor control method, control system and control chip provided by the present invention obtain audio data of the currently running game, determine whether the audio data contains a specific voice, and if so, determine whether the specific voice is a first specific voice, wherein the specific voice includes a gunshot, and the first specific voice includes the gunshot of the player of the currently running game. If it is the first specific voice, when the first specific voice is played, the motor is controlled to vibrate, so that the motor can be controlled to generate corresponding vibrations only when the player himself shoots a gunshot, thereby shielding false vibrations caused by the gunshots of others, enhancing human-computer interaction, and improving the fun of gunshot vibrations in shooting games. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0058] Figure 1 A flow chart of a motor control method provided by one embodiment of the present invention;

[0059] Figure 2 A schematic diagram of the structure of a motor control system provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0060] The above is the core idea of ​​the present invention. In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in combination with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] An embodiment of the present invention provides a motor control method, such as Figure 1 As shown, including:

[0062] S101: Acquire stereo audio data of the currently running game;

[0063] Taking the use of a mobile phone to run a game as an example, during the running of the game, as the player operates, the game will generate and play different voices, such as when the player shoots, the game will generate and play gunshots. Based on this, in an embodiment of the present invention, the audio data of the currently running game can be obtained from the mobile phone system end, that is, a stereo audio signal. The audio data can be an audio data stream output after decoding an audio file of various formats, and then the audio data stream is processed into a 16-bit signed integer. Here, taking the PlayerUnknown's Battlegrounds game as an example, a stereo audio data stream with a sampling rate of 48k and a sampling depth of 16bit is obtained from the mobile phone system end. Of course, in other embodiments, the sampling rate and sampling depth can be set according to actual conditions, which will not be repeated here.

[0064] S102: Determine whether the audio data stream contains a specific voice. If so, proceed to S103;

[0065] S103: Determine whether the specific voice is the first specific voice, the specific voice includes the sound of gunfire, and the first specific voice includes the sound of gunfire of the player currently running the game. If it is the first specific voice, proceed to S104;

[0066] S104: When playing the first specific voice, control the motor to vibrate.

[0067] After obtaining the stereo audio data of the currently running game, the voice generated by the currently running game to be played can be obtained from the stereo audio data, and then it can be identified from the voice whether it contains the required specific voice such as gunshots, and then it can be determined whether the specific voice is the first specific voice, such as determining whether the gunshot is the player's own gunshot. If it is the player's own gunshot, while playing the first specific voice, i.e., the player's own gunshot, the motor is controlled to vibrate. If it is not the player's own gunshot, but the gunshot of another player, the motor is not controlled to vibrate. It should be noted that in the embodiment of the present invention, only the specific voice is a gunshot, and the first specific voice is the player's own gunshot as an example for description, but it is not limited to this.

[0068] When the game plays voice, it will generate stereo voice with different left and right channel parameters according to the distance between the voice source and the player, as well as the angle between the voice source and the player. For example, for the voice emitted by the player himself, the full-band voice volume of the left and right channels is not much different. For the voice emitted by other players on the left side of the player, the high-frequency part of the left channel has a higher volume, and the high-frequency corresponding frequency band of the right channel has a lower volume. For the voice emitted by other players on the right side of the player, the high-frequency part of the right channel has a higher volume, and the high-frequency corresponding frequency band of the left channel has a lower volume. Therefore, the player can judge the location of the voice based on the stereo voice.

[0069] Based on this, in an embodiment of the present invention, it is possible to determine whether the current voice contains a specific voice based on the stereo audio data, and determine whether the specific voice is the first specific voice based on the left channel data and the right channel data in the stereo audio data. In addition, in order to reduce the amount of data for determining whether the current voice in the stereo audio data contains a specific voice and improve the calculation efficiency, in some embodiments of the present invention, the left channel data and the right channel data in the stereo audio data are taken smaller, so as to determine whether the current voice contains a specific voice by calculating the smaller data.

[0070] That is, in some embodiments of the present invention, before determining whether the stereo audio data contains specific speech, the method further includes: dividing the stereo audio data into a first group of data, a second group of data, and a third group of data, the first group of data being the one with the smallest absolute value between the left channel data and the right channel data in the stereo audio data, the second group of data being the left channel data in the stereo audio data, and the third group of data being the right channel data in the stereo audio data.

[0071] Furthermore, determining whether the stereo audio data contains a specific voice includes: determining whether the audio data contains a specific voice based on the first set of data; and determining whether the specific voice is the first specific voice includes: determining whether the specific voice is the first specific voice based on the second set of data and the third set of data.

[0072] The calculation formula for taking the one with the smallest absolute value between the left channel data and the right channel data is as follows:

[0073] If abs(Audio_L(n))≤abs(Audio_R(n)), then Audio(n)=Audio_L(n);

[0074] If abs(Audio_L(n))>abs(Audio_R(n)), then Audio(n)=Audio_R(n);

[0075] Wherein, n=0, 1, 2, ..., Audio(n) represents the first set of data, Audio_L(n) represents the left channel data, Audio_R(n) represents the right channel data, and abs() represents taking the absolute value.

[0076] On this basis, before judging whether the stereo audio data contains a specific voice according to the first set of data, the method further includes:

[0077] The first group of data, the second group of data and the third group of data are divided into multiple frames of data, wherein each N data is a frame, and the end of the data less than N is padded with 0, and N is a natural number greater than 1; for the convenience of calculation, N can be 1024; wherein the first group of data, the second group of data and the third group of data are divided into the same number of frames;

[0078] Each frame of data in the first group of data, the second group of data, and the third group of data is subjected to low-pass filtering, the data in the frequency band where the specific voice is located in each frame of data is retained, and the data in other frequency bands are filtered out, and the specific voice includes the first specific voice. Since the main frequency of gunshots in the game is in the range of 60Hz-200Hz, in some embodiments of the present invention, the cutoff frequency of the low-pass filter is selected as 225Hz to filter out most of the human voices and background sounds in the game. Afterwards, the absolute values ​​of the N data in each frame of data in the first group of data, the second group of data, and the third group of data after filtering are taken and summed, and the average value of the N data in each frame of data in the first group of data, the second group of data, and the third group of data is calculated.

[0079] That is, the absolute values ​​of the N data in each frame of the first set of data after low-pass filtering are taken and summed to obtain SUM(i), and the average value AVE(i) of the N data in each frame of the first set of data is calculated; the absolute values ​​of the N data in each frame of the second set of data after low-pass filtering are taken and summed to obtain SUM_L(i), and the average value AVE_L(i) of the N data in each frame of the second set of data is calculated; the absolute values ​​of the N data in each frame of the third set of data after low-pass filtering are taken and summed to obtain SUM_R(i), and the average value AVE_R(i) of the N data in each frame of the third set of data is calculated; wherein, i=0, 1, 2…, AVE(i)=SUM(i) / N, AVE_L(i)=SUM_L(i) / N, AVE_R(i)=SUM_R(i) / N.

[0080] After obtaining the average value AVE(i) of N data in each frame of data in the first set of data, it can be determined whether the stereo audio data contains a specific voice according to the average value AVE(i). In some embodiments of the present invention, determining whether the stereo audio data contains a specific voice according to the first set of data includes:

[0081] Determine that the point where the i-th frame data in the first group of data is located is a fast wave peak point, i ≥ 0, then the i-th frame data contains specific speech;

[0082] Determine that the point where the i-th frame data in the first group of data is located is not a fast wave peak point, but the point where the i-1-th frame data in the first group of data is located is a wave peak point, i≥1, then the i-1-th frame data contains specific speech;

[0083] If the i-th frame data or the i-1-th frame data includes the specific voice, the stereo audio data includes the specific voice.

[0084] That is, determine whether the point where the i-th frame data in the first group of data is a fast peak point, i≥0. If it is a fast peak point, the i-th frame data contains specific speech; if it is not a fast peak point, determine whether the i-1-th frame data in the first group of data is a peak point, i≥1. If it is a peak point, the i-1-th frame data contains specific speech; if the i-th frame data or the i-1-th frame data contains specific speech, the stereo audio data contains specific speech.

[0085] In some embodiments of the present invention, determining whether the point where the i-th frame of data in the first group of data is located is a fast wave peak point includes:

[0086] Determine whether the two conditions that the average value of the i-th frame data in the first group of data is greater than or equal to the first preset value, and that the average values ​​of the data between the i-th frame data in the first group of data and its previous adjacent trough points are less than or equal to the first preset value are both met at the same time, i≥0; if so, the point where the i-th frame data in the first group of data is located is a fast peak point.

[0087] When the specific voice is a gunshot, the first preset value is a trigger threshold for determining the strongest vibration of the gunshot vibration. Optionally, the first preset value is 3500. Of course, the present invention is not limited thereto, and the first preset value can be set according to actual conditions in different application scenarios.

[0088] In some embodiments of the present invention, determining whether the i-1th frame of data in the first set of data is a peak point includes:

[0089] Determine whether the two conditions that the average value of the i-2th frame data in the first set of data is less than the average value of the i-1th frame data, and that the average value of the i-1th frame data is greater than or equal to the average value of the i-th frame data are simultaneously met, i≥2; if so, determine that the point where the i-1th frame data in the first set of data is located is a peak point.

[0090] In some embodiments of the present invention, determining whether it is a trough point includes:

[0091] Determine whether the two conditions that the average value of the i-2th frame data in the first set of data is greater than the average value of the i-1th frame data, and that the average value of the i-1th frame data is less than or equal to the average value of the i-th frame data are simultaneously met, i≥2; if so, determine that the point where the i-1th frame data in the first set of data is located is a trough point.

[0092] It should be noted that when the data contains specific voices such as gunshots, the average value of the data is relatively large, the point where the data is located is generally a peak point, and the point between adjacent specific voices such as adjacent gunshots is generally a trough point. However, when judging whether there is a specific voice in the data, if the point where the i-th frame of data is located is a peak point, it is necessary to wait until the mobile phone system outputs the i+1th frame of data before making a judgment, which will result in a long judgment time.

[0093] Based on this, in some embodiments of the present invention, by judging whether the average value of the i-th frame data is greater than or equal to a first preset value, it is judged whether the point where the i-th frame data is located is a fast peak point. The fast peak point is located at a position where the peak point is about to be reached. By judging whether there is a fast peak point, it is possible to judge whether there is a peak point, and then it can be judged whether there is a specific voice, thereby eliminating the need to wait for the mobile phone system to output the i+1-th frame data, and thus it is possible to quickly judge whether there is a specific voice in the data.

[0094] It should be noted that after judging that the average value of the i-th frame data in the first set of data is greater than or equal to the first preset value, it is also necessary to judge that the average values ​​of the data between the i-th frame data and the adjacent trough points before it in the first set of data are less than or equal to the first preset value in order to determine whether the point where the i-th frame data is located is a fast peak point. This is because not only there are points with an average value greater than or equal to the first preset value on the left side of the peak point, but there are also points with an average value greater than or equal to the first preset value on the right side of the peak point. If the average value of the data between the i-th frame data and the adjacent trough points before it in the first set of data is greater than the first preset value, it means that the fast peak point on the left side of the peak point has been judged, and it has been determined that the data contains a specific voice, so there is no need to repeat the judgment. However, if the average values ​​of the data between the i-th frame data and the adjacent trough points before it in the first set of data are less than or equal to the first preset value, it means that it has not been determined that the peak point contains a specific voice, so it is necessary to enter the subsequent judgment process for judgment.

[0095] It should also be explained that the reason for limiting the data in the first set of data to the data between the i-th frame data and its previous adjacent trough points is because the audio data may contain multiple specific voices, such as multiple gunshots, and the points between adjacent specific voices such as adjacent gunshots are generally trough points. Therefore, in order to avoid judging the specific voices that have been judged before, when judging the fast peak points, the data to be judged is limited to the data between the i-th frame data in the first set of data and its previous adjacent trough points.

[0096] In some specific implementations, determining whether the stereo audio data contains a specific voice according to the first set of data includes:

[0097] Determine whether the average value AVE(i-2) of the i-2th frame data in the first group of data is less than the average value AVE(i-1) of the i-1th frame data, and whether the average value AVE(i-1) of the i-1th frame data is greater than or equal to the average value AVE(i) of the i-1th frame data, i≥2;

[0098] If yes, determine that the point where the i-1th frame of data in the first set of data is located is a peak point, and set the peak flag Peak_flag to 1 and the valley flag Valley_flag to 0;

[0099] If not, determine whether the two conditions that the average value AVE(i-2) of the i-2 frame data in the first group of data is greater than the average value AVE(i-1) of the i-1 frame data, and the average value AVE(i-1) of the i-1 frame data is less than or equal to the average value AVE(i) of the i-1 frame data are simultaneously met;

[0100] If yes, determine that the point where the i-1th frame data in the first set of data is located is a trough point, and set the fast peak flag FastPeak_flag to 0, the peak flag Peak_flag to 0, and the trough flag Valley_flag to 1;

[0101] If not, determine whether the average value AVE(i) of the i-th frame data in the first set of data is greater than the first preset value, and whether the fast peak flag FastPeak_flag is 0. Where i≥0;

[0102] If yes, determine that the point where the i-th frame data in the first set of data is located is a fast peak point, set the fast peak flag FastPeak_flag to 1, and the valley flag Valley_flag to 0;

[0103] It is determined whether the fast peak flag FastPeak_flag is 1. If so, it is determined that the i-th frame data contains specific speech. If not, it is determined that the i-th frame data does not contain specific speech.

[0104] In some embodiments of the present invention, after determining that the i-th frame data does not contain a specific voice, the method further includes:

[0105] Determine whether the peak flag Peak_flag is equal to 1 and the fast peak flag FastPeak_flag is equal to 0. If so, determine that the i-1th frame data contains specific speech; if not, determine that the i-1th frame data does not contain specific speech.

[0106] Likewise, if the i-th frame data or the i-1-th frame data includes a specific voice, it is determined that the stereo audio data includes the specific voice.

[0107] After determining that the i-th frame data contains a specific voice, it also includes: determining whether the specific voice contained in the i-th frame data is the first specific voice; after determining that the i-1-th frame data contains a specific voice, it also includes: determining whether the specific voice contained in the i-1-th frame data is the first specific voice.

[0108] In some embodiments of the present invention, determining whether the specific voice is the first specific voice according to the second set of data and the third set of data includes:

[0109] Determine whether the specific voice parameter of the j-th frame data is less than a second preset value, and if so, determine that the specific voice in the j-th frame data is the first specific voice;

[0110] Among them, if the average value of the j-th frame data in the second group of data is greater than or equal to the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the second group of data to the average value of the j-th frame data in the third group of data; if the average value of the j-th frame data in the second group of data is less than the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the third group of data to the average value of the j-th frame data in the second group of data.

[0111] In some specific implementations, determining whether the specific voice is the first specific voice according to the second set of data and the third set of data includes:

[0112] Determine whether the average value AVE_L(j) of the j-th frame data in the second set of data is greater than or equal to the average value AVE_R(j) of the j-th frame data in the third set of data, j≥0;

[0113] If so, that is, when the average value AVE_L(j) of the j-th frame data in the second set of data is greater than or equal to the average value AVE_R(j) of the j-th frame data in the third set of data, set the specific speech parameter Self_shoot_flag equal to the ratio of the average value AVE_L(j) of the j-th frame data in the second set of data to the average value AVE_R(j) of the j-th frame data in the third set of data, that is, set Self_shoot_flag = AVE_L(j) / AVE_R(j);

[0114] If not, that is, when the average value AVE_L(j) of the j-th frame data in the second set of data is less than the average value AVE_R(j) of the j-th frame data in the third set of data, set the specific speech parameter Self_shoot_flag equal to the ratio of the average value AVE_R(j) of the j-th frame data in the third set of data to the average value AVE_L(j) of the j-th frame data in the second set of data, that is, set Self_shoot_flag = AVE_R(j) / AVE_L(j);

[0115] It is determined whether the specific voice parameter Self_shoot_flag is less than a second preset value. If so, it is determined that the j-th frame data contains the first specific voice. When the specific voice is a gunshot, the second preset value may be 1.08.

[0116] That is to say, if the point where the i-th frame data is located is determined to be a fast peak point, then it can be determined that the i-th frame data contains a specific voice, and then it is determined whether the average value AVE_L(i) of the i-th frame data in the second group of data is greater than or equal to the average value AVE_R(i) of the i-th frame data in the third group of data, i≥0; if so, let Self_shoot_flag=AVE_L(i) / AVE_R(i); if not, let Self_shoot_flag=AVE_R(i) / AVE_L(i); further determine whether the specific voice parameter Self_shoot_flag is less than the second preset value, and if so, it is determined that the i-th frame data contains the first specific voice.

[0117] When it is determined that the point where the i-1 frame data is located is a peak point and not a fast peak point, it can be determined that the i-1 frame data contains a specific voice. Then, it is determined whether the average value AVE_L(i-1) of the i-1 frame data in the second group of data is greater than or equal to the average value AVE_R(i-1) of the i-1 frame data in the third group of data, (i-1)≥0; if so, let Self_shoot_flag=AVE_L(i-1) / AVE_R(i-1); if not, let Self_shoot_flag=AVE_R(i-1) / AVE_L(i-1); further determine whether the specific voice parameter Self_shoot_flag is less than the second preset value. If so, it is determined that the i-1 frame data contains the first specific voice.

[0118] In some embodiments of the present invention, after determining that the j-th frame data contains the first specific voice, it also includes: determining the vibration sense of the motor according to the average value of the j-th frame data in the first group of data to control the motor to vibrate with the corresponding vibration sense.

[0119] Specifically, when the point where the j-th frame data is located is a fast peak point, and after it is determined that the j-th frame data contains the first specific voice, the motor is controlled to vibrate with a corresponding vibration in the j-th frame; when the point where the j-1-th frame data is located is a peak point and not a fast peak point, and after it is determined that the j-1-th frame data contains the first specific voice, the motor is controlled to vibrate with a corresponding vibration in the j-th frame.

[0120] Since different types of guns emit different sounds, in some embodiments of the present invention, the motor is controlled to vibrate with different vibrations according to different gunshots to enhance the gaming experience. After determining that the j-th frame data contains the first specific voice, the motor vibration determination data PeakData is equal to the average value AVE(j) of the j-th frame data in the first set of data, that is, PeakData=AVE(j). If 1000≤PeakData<2100, the motor vibration is set to the first value; if 2100≤PeakData<2500, the motor vibration is set to the second value; if 2500≤PeakData<3500, the motor vibration is set to the third value; if 3500≤PeakData, the motor vibration is set to the fourth value; if PeakData is equal to other values, the motor does not vibrate or stops vibrating.

[0121] Optionally, the first value, the second value, the third value and the fourth value increase in sequence, and the larger the average value AVE(j), the stronger the vibration intensity of the motor. However, the present invention is not limited to this. In other embodiments, the vibration intensity of motors with different average values ​​AVE(j) is the same, but the larger the average value AVE(j), the longer the vibration duration of the motor, so that the vibration of motors with different average values ​​AVE(j) is different. It should be noted that in the embodiment of the present invention, the stereo audio data of the currently running game will be continuously acquired, the stereo audio data will be continuously grouped, framed and filtered, etc., and each frame of data will be continuously judged in chronological order. If it is determined that one of the frames of data contains the first specific voice, the motor is controlled to vibrate accordingly. Regardless of whether the current data contains the first specific voice in the judgment result, the stereo audio data output subsequently will be judged until the currently running game is stopped or closed.

[0122] The embodiment of the present invention further provides a motor control system, such as Figure 2 As shown, including:

[0123] The audio acquisition module 20 is used to acquire the stereo audio data of the currently running game;

[0124] The voice recognition module 21 is used to determine whether the stereo audio data contains a specific voice and whether the specific voice is a first specific voice, and output a control instruction, wherein the specific voice includes a gunshot, and the first specific voice includes the gunshot of the player currently running the game;

[0125] The motor driving chip 23 is used to receive the control instruction output by the voice recognition module 21 and control the motor 25 to vibrate;

[0126] The audio amplifier module 22 is used to receive the stereo audio data acquired by the audio acquisition module 20 and control the speaker 24 to play the stereo audio data.

[0127] It should be noted that after the audio acquisition module 20 acquires the stereo audio data of the currently running game, it will transmit the stereo audio data to the audio power amplifier module 22, and the audio power amplifier module 22 will control the speaker 24 to play the stereo audio data. While the audio acquisition module 20 transmits the stereo audio data to the audio power amplifier module 22, it will also transmit the stereo audio data to the voice recognition module 21. The voice recognition module 21 determines whether the stereo audio data contains a specific voice, and determines whether the specific voice is the first specific voice. If the stereo audio data contains a specific voice and the specific voice is the first specific voice, the control instruction is output to the motor driver chip 23. After receiving the control instruction, the motor driver chip 23 controls the motor 25 to vibrate. Since the recognition speed of the voice recognition module 21 is very fast, the motor 25 can be controlled to vibrate while the speaker 24 plays the stereo audio data.

[0128] Taking the example of using a mobile phone to run a game, during the game, the game will generate and play different voices as the player operates, such as when the player shoots, the game will generate and play the sound of a gunshot. Based on this, the audio acquisition module 20 obtains the audio data of the currently running game, that is, a stereo audio signal, from the mobile phone system. The audio data can be an audio data stream output after decoding audio files of various formats.

[0129] In some embodiments of the present invention, the speech recognition module 21 is also used to divide the stereo audio data into a first group of data, a second group of data and a third group of data, the first group of data being the one with the smallest absolute value between the left channel data and the right channel data in the stereo audio data, the second group of data being the left channel data in the stereo audio data, and the third group of data being the right channel data in the stereo audio data, and determining whether the stereo audio data contains a specific speech based on the first group of data, and determining whether the specific speech is the first specific speech based on the second group of data and the third group of data.

[0130] On this basis, before determining whether the stereo audio data contains a specific voice according to the first group of data, the voice recognition module 21 is further used to divide the first group of data, the second group of data and the third group of data into multiple frames of data, perform low-pass filtering on each frame of data in the first group of data, the second group of data and the third group of data, retain the data in the frequency band where the specific voice is located in each frame of data, take the absolute value of N data in each frame of data in the first group of data, the second group of data and the third group of data after the low-pass filtering, and then sum them, and calculate the average value of the N data in each frame of data in the first group of data, the second group of data and the third group of data;

[0131] Wherein, every N data is a frame, and N is a natural number greater than 1.

[0132] That is, the speech recognition module 21 is also used to divide the first group of data, the second group of data and the third group of data into multiple frames of data, wherein each N data is one frame, and the end of the data less than N is padded with 0, and N is a natural number greater than 1; low-pass filtering is performed on each frame of data in the first group of data, the second group of data and the third group of data, and the data in the frequency band where the specific speech is located in each frame of data is retained, and the data in other frequency bands are filtered out, and the specific speech includes the first specific speech; the absolute value of the N data in each frame of data in the first group of data after the low-pass filtering is taken and then summed to obtain SUM (i), and calculate the average value AVE(i) of the N data in each frame of data in the first set of data, take the absolute value of the N data in each frame of data in the second set of data after low-pass filtering and sum them to obtain SUM_L(i), and calculate the average value AVE_L(i) of the N data in each frame of data in the second set of data, take the absolute value of the N data in each frame of data in the third set of data after low-pass filtering and sum them to obtain SUM_R(i), and calculate the average value AVE_R(i) of the N data in each frame of data in the third set of data. Wherein, i=0, 1, 2…, AVE(i)=SUM(i) / N, AVE_L(i)=SUM_L(i) / N, AVE_R(i)=SUM_R(i) / N.

[0133] In some embodiments of the present invention, the speech recognition module 21 is used to determine that the stereo audio data contains specific speech when the point where the i-th frame data in the first group of data is located is a fast peak point, i≥0, or when the point where the i-th frame data in the first group of data is located is not a fast peak point, but the point where the i-1-th frame data in the first group of data is located is a peak point, i≥1, and determine that the stereo audio data contains specific speech.

[0134] In some embodiments of the present invention, the speech recognition module 21 is used to determine that the point where the i-th frame data in the first group of data is located is a fast peak point when the average value of the i-th frame data in the first group of data is greater than or equal to a first preset value, and the average values ​​of the data between the i-th frame data and its previous adjacent trough points in the first group of data are both less than or equal to the first preset value; i≥0.

[0135] In some embodiments of the present invention, the speech recognition module 21 is used to determine that the point where the i-1th frame data in the first group of data is located is a trough point when the average value of the i-2th frame data in the first group of data is greater than the average value of the i-1th frame data, and the average value of the i-1th frame data is less than or equal to the average value of the i-th frame data; i≥2.

[0136] In some embodiments of the present invention, the speech recognition module 21 is used to determine that the point where the i-1th frame data in the first group of data is located is a peak point when the average value of the i-2th frame data in the first group of data is less than the average value of the i-1th frame data, and the average value of the i-1th frame data is greater than or equal to the average value of the i-th frame data; i≥2.

[0137] In some specific implementations, the speech recognition module 21 is used to determine whether the two conditions that the average value AVE(i-2) of the i-2 frame data in the first group of data is less than the average value AVE(i-1) of the i-1 frame data, and the average value AVE(i-1) of the i-1 frame data is greater than or equal to the average value AVE(i) of the i-1 frame data are simultaneously met, i≥2;

[0138] If yes, determine that the point where the i-1th frame of data in the first set of data is located is a peak point, and set the peak flag Peak_flag to 1 and the valley flag Valley_flag to 0;

[0139] If not, determine whether the two conditions that the average value AVE(i-2) of the i-2 frame data in the first group of data is greater than the average value AVE(i-1) of the i-1 frame data, and the average value AVE(i-1) of the i-1 frame data is less than or equal to the average value AVE(i) of the i-1 frame data are simultaneously met;

[0140] If yes, determine that the point where the i-1th frame data in the first set of data is located is a trough point, and set the fast peak flag FastPeak_flag to 0, the peak flag Peak_flag to 0, and the trough flag Valley_flag to 1;

[0141] If not, determine whether the average value AVE(i) of the i-th frame data in the first set of data is greater than the first preset value, and whether the fast peak flag FastPeak_flag is 0. Where i≥0;

[0142] If yes, determine that the point where the i-th frame data in the first set of data is located is a fast peak point, set the fast peak flag FastPeak_flag to 1, and the valley flag Valley_flag to 0;

[0143] It is determined whether the fast peak flag FastPeak_flag is 1. If so, it is determined that the i-th frame data contains specific speech. If not, it is determined that the i-th frame data does not contain specific speech.

[0144] On this basis, after determining that the i-th frame data does not contain a specific voice, the voice recognition module 21 is further used to determine whether the peak flag Peak_flag is equal to 1 and the fast peak flag FastPeak_flag is equal to 0. If so, it is determined that the i-1-th frame data contains a specific voice, and if not, it is determined that the i-1-th frame data does not contain a specific voice. If it is determined that the i-th frame data contains a specific voice or the i-1-th frame data contains a specific voice, the voice recognition module 21 determines that the stereo audio data contains a specific voice.

[0145] On this basis, in some embodiments of the present invention, the speech recognition module 21 is further configured to determine that the specific speech in the j-th frame data is the first specific speech when the specific speech parameter of the j-th frame data is less than a second preset value;

[0146] Among them, if the average value of the j-th frame data in the second group of data is greater than or equal to the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the second group of data to the average value of the j-th frame data in the third group of data; if the average value of the j-th frame data in the second group of data is less than the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the third group of data to the average value of the j-th frame data in the second group of data.

[0147] In some specific embodiments, the speech recognition module 21 is used to determine whether the average value AVE_L(j) of the j-th frame data in the second group of data is greater than or equal to the average value AVE_R(j) of the j-th frame data in the third group of data, j≥0; if so, set the specific speech parameter Self_shoot_flag equal to the ratio of the average value AVE_L(j) of the j-th frame data in the second group of data to the average value AVE_R(j) of the j-th frame data in the third group of data, that is, set Self_shoot_flag=AVE_L(j) / AVE_R(j); if not, set the specific speech parameter Self_shoot_flag equal to the ratio of the average value AVE_R(j) of the j-th frame data in the third group of data to the average value AVE_L(j) of the j-th frame data in the second group of data, that is, set Self_shoot_flag=AVE_R(j) / AVE_L(j); determine whether the specific speech parameter Self_shoot_flag is less than the second preset value, and if so, determine that the j-th frame data contains the first specific speech. Among them, when the specific voice is a gunshot, the second preset value can be selected as 1.08.

[0148] That is, after determining that the i-th frame data contains a specific voice, the voice recognition module 21 is used to determine whether the average value AVE_L(i) of the i-th frame data in the second set of data is greater than or equal to the average value AVE_R(i) of the i-th frame data in the third set of data, i≥0;

[0149] If yes, set Self_shoot_flag = AVE_L(i) / AVE_R(i);

[0150] If not, let Self_shoot_flag=AVE_R(i) / AVE_L(i);

[0151] It is determined whether the specific voice parameter Self_shoot_flag is less than a second preset value. If so, it is determined that the i-th frame data contains the first specific voice.

[0152] After determining that the i-1th frame data contains a specific voice, the voice recognition module 21 is used to determine whether the average value AVE_L(i-1) of the i-1th frame data in the second group of data is greater than or equal to the average value AVE_R(i-1) of the i-1th frame data in the third group of data, (i-1)≥0;

[0153] If yes, set Self_shoot_flag = AVE_L(i-1) / AVE_R(i-1);

[0154] If not, let Self_shoot_flag=AVE_R(i-1) / AVE_L(i-1);

[0155] It is determined whether the specific voice parameter Self_shoot_flag is less than a second preset value. If so, it is determined that the i-1th frame data contains the first specific voice.

[0156] In some embodiments of the present invention, after determining that the specific voice is the first specific voice, the voice recognition module 21 is also used to determine the vibration of the motor according to the average value of the j-th frame data in the first group of data, so as to control the motor to vibrate with the corresponding vibration through control instructions.

[0157] In some specific embodiments, after the voice recognition module 21 determines that the j-th frame data contains the first specific voice, the motor vibration determination data PeakData is set to be equal to the average value AVE(j) of the j-th frame data in the first set of data, that is, PeakData=AVE(j). Thereafter, it is determined whether PeakData is greater than or equal to 1000 and less than 2100. If so, the motor vibration is set to the first value. If not, it is determined whether PeakData is greater than or equal to 2100 and less than 2500. If so, the motor vibration is set to the second value. If not, it is determined whether PeakData is greater than or equal to 2500 and less than 3500. If so, the motor vibration is set to the third value. If not, it is determined whether PeakData is greater than or equal to 3500. If so, the motor vibration is set to the fourth value. If not, the motor does not vibrate or stops vibrating.

[0158] An embodiment of the present invention further provides a motor control chip, including a processor and a memory;

[0159] Memory is used to store computer executable instructions;

[0160] When the processor executes the computer-executable instruction, the processor executes the motor control method provided in any of the above embodiments. That is, the processor is used to execute the motor control method provided in any of the above embodiments.

[0161] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0162] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A motor control method, characterized in that: include: Get the stereo audio data of the currently running game; Determining whether the stereo audio data contains a specific voice; If a specific voice is included, determining whether the specific voice is a first specific voice, the specific voice includes a gunshot, and the first specific voice includes the gunshot of the player currently running the game; If it is the first specific voice, when the first specific voice is played, the motor is controlled to vibrate, otherwise, the motor is not controlled to vibrate; Before determining whether the stereo audio data contains a specific voice, the method further includes: Divide the stereo audio data into a first group of data, a second group of data and a third group of data, wherein the first group of data is the one with the smallest absolute value between the left channel data and the right channel data in the stereo audio data, the second group of data is the left channel data in the stereo audio data, and the third group of data is the right channel data in the stereo audio data; Determining whether the stereo audio data contains a specific voice includes: determining whether the stereo audio data contains a specific voice according to the first set of data; Determining whether the specific voice is the first specific voice includes: determining whether the specific voice is the first specific voice according to the second set of data and the third set of data; Determining whether the specific voice is the first specific voice according to the second set of data and the third set of data includes: Determine whether the specific voice parameter of the j-th frame data is less than a second preset value, and if so, determine that the specific voice in the j-th frame data is the first specific voice; Among them, if the average value of the j-th frame data in the second group of data is greater than or equal to the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the second group of data to the average value of the j-th frame data in the third group of data; if the average value of the j-th frame data in the second group of data is less than the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the third group of data to the average value of the j-th frame data in the second group of data.

2. The method according to claim 1, characterized in that Before determining whether the stereo audio data contains a specific voice according to the first set of data, the method further includes: Dividing the first group of data, the second group of data and the third group of data into multiple frames of data, wherein every N data is a frame, and N is a natural number greater than 1; Performing low-pass filtering on each frame of data in the first group of data, the second group of data, and the third group of data, and retaining data in a frequency band where a specific voice is located in each frame of data; The absolute values ​​of N data in each frame of the first set of data, the second set of data and the third set of data after low-pass filtering are taken and summed, and the average value of the N data in each frame of the first set of data, the second set of data and the third set of data is calculated.

3. The method according to claim 2, characterized in that Determining whether the stereo audio data contains a specific voice according to the first set of data includes: Determine that the point where the i-th frame of data in the first group of data is a fast wave peak point, i≥0, then the i-th frame of data contains the specific voice; Determine that the point where the i-th frame data in the first group of data is located is not a fast peak point, but the point where the i-1-th frame data in the first group of data is located is a peak point, i≥1, then the i-1-th frame data contains the specific voice; If the i-th frame data or the i-1-th frame data includes the specific voice, the stereo audio data includes the specific voice.

4. The method according to claim 3, characterized in that Determining whether the point where the i-th frame of data in the first group of data is located is a fast wave peak point includes: Determine whether the average value of the i-th frame data in the first set of data is greater than or equal to a first preset value, and whether the average values ​​of the data between the i-th frame data and the adjacent trough points before it in the first set of data are both less than or equal to the first preset value, i≥0; If so, the point where the i-th frame data in the first set of data is located is a fast wave peak point.

5. The method according to claim 4, characterized in that Judging whether it is a trough point includes: Determine whether the average value of the i-2th frame data in the first group of data is greater than the average value of the i-1th frame data, and whether the average value of the i-1th frame data is less than or equal to the average value of the i-th frame data. i≥2; If so, it is determined that the point where the i-1th frame of data in the first set of data is located is a trough point.

6. The method according to claim 3, characterized in that Determining whether the (i-1)th frame of data in the first group of data is a peak point includes: Determine whether the average value of the i-2th frame data in the first group of data is less than the average value of the i-1th frame data, and whether the average value of the i-1th frame data is greater than or equal to the average value of the i-th frame data. i≥2; If so, determine that the point where the i-1th frame of data in the first group of data is located is a peak point.

7. The method according to claim 1, characterized in that After determining that the specific voice is the first specific voice, the method further includes: The vibration sense of the motor is determined according to the average value of the j-th frame data in the first group of data, so as to control the motor to vibrate with the corresponding vibration sense.

8. A motor control system, characterized in that: include: The audio acquisition module is used to obtain the stereo audio data of the currently running game; a voice recognition module, used to determine whether the stereo audio data contains a specific voice and whether the specific voice is a first specific voice, and to output a control instruction, wherein the specific voice includes a gunshot, and the first specific voice includes the gunshot of the player currently running the game; A motor driving chip, used for receiving the control instruction and controlling the motor to vibrate; An audio power amplifier module, used for receiving the stereo audio data acquired by the audio acquisition module, and for controlling the speaker to play the stereo audio data; The speech recognition module is also used to divide the stereo audio data into a first group of data, a second group of data and a third group of data, the first group of data being the one with the smallest absolute value between the left channel data and the right channel data in the stereo audio data, the second group of data being the left channel data in the stereo audio data, and the third group of data being the right channel data in the stereo audio data, and judging whether the stereo audio data contains a specific speech based on the first group of data, and judging whether the specific speech is a first specific speech based on the second group of data and the third group of data.

9. The system according to claim 8, characterized in that Before determining whether the stereo audio data contains a specific voice according to the first group of data, the voice recognition module is further used to divide the first group of data, the second group of data and the third group of data into multiple frames of data, perform low-pass filtering on each frame of data in the first group of data, the second group of data and the third group of data, retain the data in the frequency band where the specific voice is located in each frame of data, take the absolute value of N data in each frame of data in the first group of data, the second group of data and the third group of data after the low-pass filtering, and sum them, and calculate the average value of the N data in each frame of data in the first group of data, the second group of data and the third group of data; Wherein, every N data is a frame, and N is a natural number greater than 1.

10. The system according to claim 9, characterized in that The speech recognition module is used to determine that the stereo audio data contains the specific speech when the point where the i-th frame data in the first group of data is located is a fast peak point, i≥0, or to determine that the stereo audio data contains the specific speech when the point where the i-th frame data in the first group of data is located is not a fast peak point but the i-1-th frame data in the first group of data is a peak point, i≥1.

11. The system according to claim 10, characterized in that The speech recognition module is used to determine that the point where the i-th frame data in the first group of data is located is a fast peak point when the average value of the i-th frame data in the first group of data is greater than or equal to a first preset value, and the average values ​​of the data between the i-th frame data and its previous adjacent trough points in the first group of data are both less than or equal to the first preset value; i≥0.

12. The system according to claim 11, characterized in that The speech recognition module is used to determine that the point where the i-1th frame data in the first group of data is located is a trough point when the average value of the i-2th frame data in the first group of data is greater than the average value of the i-1th frame data, and the average value of the i-1th frame data is less than or equal to the average value of the i-th frame data; i≥2.

13. The system according to claim 10, characterized in that The speech recognition module is used to determine that the point where the i-1th frame data in the first group of data is located is a peak point when the average value of the i-2th frame data in the first group of data is less than the average value of the i-1th frame data, and the average value of the i-1th frame data is greater than or equal to the average value of the i-th frame data; i≥2.

14. The system according to claim 10, characterized in that The speech recognition module is used for determining that the specific speech in the j-th frame data is the first specific speech when the specific speech parameter of the j-th frame data is less than a second preset value; Among them, if the average value of the j-th frame data in the second group of data is greater than or equal to the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the second group of data to the average value of the j-th frame data in the third group of data; if the average value of the j-th frame data in the second group of data is less than the average value of the j-th frame data in the third group of data, then the specific voice parameter is equal to the ratio of the average value of the j-th frame data in the third group of data to the average value of the j-th frame data in the second group of data.

15. The system according to claim 10, characterized in that After determining that the specific voice is the first specific voice, the voice recognition module is further used to determine the vibration of the motor according to the average value of the j-th frame data in the first group of data, so as to control the motor to vibrate with the corresponding vibration through the control instruction.

16. A motor control chip, characterized in that: including a processor and a memory; The memory is used to store computer-executable instructions; The processor is used to execute the motor control method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Electronic device, electronic system and electronic device control method

    CN104147781A

  • Vision display method and device for compensation voice information, storage medium and facility

    CN107890673A

  • Method for controlling robot to realize mechanical rhythm and robot

    CN108393906A

  • Voice recognition control method and device

    CN108735219A

  • Game vibration method and device, mobile terminal and computer readable storage medium

    CN109701266A