CN110971743B - Reminding method of terminal equipment and related product - Google Patents

Reminding method of terminal equipment and related product Download PDF

Info

Publication number
CN110971743B
CN110971743B CN201811140844.0A CN201811140844A CN110971743B CN 110971743 B CN110971743 B CN 110971743B CN 201811140844 A CN201811140844 A CN 201811140844A CN 110971743 B CN110971743 B CN 110971743B
Authority
CN
China
Prior art keywords
vibration
fluctuation
data
amplitude
time
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.)
Active
Application number
CN201811140844.0A
Other languages
Chinese (zh)
Other versions
CN110971743A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811140844.0A priority Critical patent/CN110971743B/en
Publication of CN110971743A publication Critical patent/CN110971743A/en
Application granted granted Critical
Publication of CN110971743B publication Critical patent/CN110971743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B6/00Tactile signalling systems, e.g. personal calling systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H2210/00Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
    • G10H2210/101Music Composition or musical creation; Tools or processes therefor
    • G10H2210/131Morphing, i.e. transformation of a musical piece into a new different one, e.g. remix
    • G10H2210/136Morphing interpolation, i.e. interpolating in pitch, harmony or time, tempo or rhythm, between two different musical pieces, e.g. to produce a new musical work

Abstract

The embodiment of the invention provides a reminding method of terminal equipment and a related product, wherein the method comprises the following steps: obtaining fluctuation data corresponding to audio data, and determining fluctuation amplitude corresponding to vibration time in the fluctuation data; and controlling the terminal equipment to send vibration prompt at the vibration time, wherein the larger the fluctuation amplitude corresponding to the vibration time is, the stronger the vibration strength is. The vibration amplitude of the vibration reminding is controlled by using the fluctuation amplitude of the audio data, so that the vibration is rich in rhythm and aesthetic feeling, and meanwhile, the reminding effect of the vibration is improved.

Description

Reminding method of terminal equipment and related product
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a reminding method of terminal equipment and a related product.
Background
The reminding of the terminal device means that the terminal device sends out a behavior for prompting the user, for example: the user is prompted to receive information or certain events set by the user are triggered in a vibration mode, a ringing mode or a light mode.
In the present reminding method of the terminal device, vibration reminding is taken as an example: a fixed intensity and duration of vibration is employed, more specifically, for example: when the mobile phone is in the vibration mode and a call is incoming, the mobile phone executes vibration at a fixed frequency and intensity.
The reminding method is not only boring and lack of aesthetic feeling, but also has poor reminding effect due to fixed reminding frequency.
Disclosure of Invention
The embodiment of the invention provides a reminding method of terminal equipment and a related product, which are used for realizing aesthetic reminding and improving the reminding effect.
On one hand, the embodiment of the invention provides a reminding method of terminal equipment, which comprises the following steps:
obtaining fluctuation data corresponding to audio data, and determining fluctuation amplitude corresponding to vibration time in the fluctuation data;
and controlling the terminal equipment to send vibration prompt at the vibration time, wherein the larger the fluctuation amplitude corresponding to the vibration time is, the stronger the vibration strength is.
In one possible implementation, before determining the corresponding fluctuation amplitude of the vibration time in the fluctuation data, the method further includes:
and determining the average fluctuation amplitude of the fluctuation data, intercepting the time of the fluctuation amplitude smaller than the average fluctuation amplitude in the fluctuation data as non-vibration time, and taking the time of the fluctuation data except the non-vibration time as vibration time.
In one possible implementation manner, the obtaining of the fluctuation data corresponding to the audio data includes:
and intercepting the climax, the drum points and the rhythm points in the audio data to obtain fluctuation data corresponding to the climax, the drum points and the rhythm points.
In one possible implementation, before determining the corresponding fluctuation amplitude of the vibration time in the fluctuation data, the method further includes:
and determining the average fluctuation amplitude of the fluctuation data, and intercepting the time of the fluctuation amplitude larger than the average fluctuation amplitude in the fluctuation data as the vibration time.
In one possible implementation manner, before the controlling the terminal device to issue the vibration alert at the vibration time, the method further includes:
subtracting the average fluctuation amplitude from the fluctuation amplitude corresponding to each vibration moment in the vibration time to obtain a reference fluctuation amplitude of the vibration time, and dividing the reference fluctuation amplitude into N intervals from low to high, wherein N is an integer greater than 1;
the greater the fluctuation amplitude corresponding to the vibration time, the stronger the vibration strength comprises:
each interval corresponds to the intensity of one vibration, and the larger the reference fluctuation amplitude is, the larger the intensity of the vibration corresponding to the interval in which the interval is located is.
In one possible implementation manner, before the controlling the terminal device to issue the vibration alert at the vibration time, the method further includes:
and storing the vibration strength value of the interval to which the fluctuation amplitude corresponding to the vibration time belongs into an array according to the time sequence of the vibration time.
In a possible implementation manner, the controlling the terminal device to send out the vibration reminder at the vibration time includes:
and sequentially reading the vibration strength values from the array, and controlling the terminal equipment to send vibration prompt according to the read vibration strength values.
In another aspect, an embodiment of the present invention further provides a terminal device, including:
the data acquisition unit is used for acquiring fluctuation data corresponding to the audio data;
the amplitude determining unit is used for determining the corresponding fluctuation amplitude of the vibration time in the fluctuation data;
and the reminding control unit is used for controlling the terminal equipment to send vibration reminding at the vibration time, and the larger the fluctuation amplitude corresponding to the vibration time is, the stronger the vibration strength is.
In one possible implementation manner, the terminal device further includes:
and the non-vibration determining unit is used for determining the average fluctuation amplitude of the fluctuation data before the amplitude determining unit determines that the vibration time is in the corresponding fluctuation amplitude in the fluctuation data, intercepting the time of which the fluctuation amplitude is smaller than the average fluctuation amplitude in the fluctuation data as the non-vibration time, and taking the time of which the fluctuation data is out of the non-vibration time as the vibration time.
In a possible implementation manner, the data obtaining unit is configured to intercept a climax, a drum point, and a rhythm point in the audio data, and obtain fluctuation data corresponding to the climax, the drum point, and the rhythm point; the audio data is music data.
In one possible implementation manner, the terminal device further includes:
and the vibration determining unit is used for determining the average fluctuation amplitude of the fluctuation data before the amplitude determining unit determines that the vibration time is in the corresponding fluctuation amplitude in the fluctuation data, and intercepting the time of which the fluctuation amplitude is greater than the average fluctuation amplitude in the fluctuation data as the vibration time.
In a possible implementation manner, the vibration determining unit is further configured to subtract the average fluctuation amplitude from the fluctuation amplitude corresponding to each vibration time in the vibration time to obtain a reference fluctuation amplitude of the vibration time before the reminding control unit controls the terminal device to send the vibration reminder at the vibration time, and divide the reference fluctuation amplitude into N intervals from low to high, where N is an integer greater than 1;
the reminding control unit is used for controlling the terminal equipment to send out vibration reminding at the vibration time, each interval corresponds to the strength of one vibration, and the larger the reference fluctuation range is, the larger the strength of the corresponding vibration in the interval where the terminal equipment is located is.
In a possible implementation manner, the vibration determining unit is further configured to store the vibration intensity value of the section to which the fluctuation amplitude corresponding to the vibration time belongs into an array according to the time sequence of the vibration time before the reminding control unit controls the terminal device to send the vibration reminding at the vibration time;
and the reminding control unit is used for reading the vibration strength values from the array in sequence and controlling the terminal equipment to send vibration reminding according to the read vibration strength values.
The embodiment of the present invention in three aspects further provides a terminal device, including a memory and a processor, where the memory is used to store program instructions, and the program instructions are suitable for being loaded by the processor;
the processor is configured to load the program instructions and execute any one of the methods provided by the embodiments of the present invention.
Embodiments of the present invention further provide a storage medium, where a plurality of program instructions are stored, where the program instructions are adapted to be loaded by a processor and to execute any one of the methods provided by the embodiments of the present invention.
Fifthly, the embodiment of the invention also provides a computer program product, which contains a plurality of program instructions, wherein the program instructions are suitable for being loaded by a processor and executing any method provided by the embodiment of the invention.
Based on the above embodiment, the vibration amplitude of the vibration prompt is controlled by using the fluctuation amplitude of the audio data, so that the vibration is rich in rhythm and aesthetic feeling, and meanwhile, the prompt effect of the vibration is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present invention, the drawings required to be used in the embodiments or the background art of the present invention will be described below.
Fig. 1 is a schematic diagram of a reminding application scenario of a terminal device according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the amplitude of voice data according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating vibration time and vibration intensity according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
As shown in fig. 1, which is a schematic view of an application scenario according to an embodiment of the present invention, the terminal device shown in fig. 1 includes two types, one type is a mobile phone, and the other type is a wearable device; besides these terminal devices, other terminal devices that issue alerts in a vibration manner may also be used, which is not limited in this embodiment of the present invention.
FIG. 2 is a schematic diagram of the transformed fluctuation of audio data, with amplitude on the vertical axis and time on the horizontal axis, according to an embodiment of the present invention; here, the amplitude may be only the upper half or the lower half of the fluctuation diagram shown in fig. 2.
An embodiment of the present invention provides a method for reminding a terminal device, as shown in fig. 3, including:
301: obtaining fluctuation data corresponding to the audio data, and determining the fluctuation amplitude of the vibration time in the fluctuation data;
the audio data may be audio data played together with vibrations, and the fluctuation data of the audio data is data indicating the fluctuation amplitude of the audio data at each point in time. The amplitude of the fluctuation may correspond to the pitch or loudness of the sound, which usually represents the audio data, in particular the melody of music; the loudness can better reflect the emotional expression of music; which parameter is specifically adopted to correspond to the fluctuation amplitude is not limited uniquely in the embodiment of the present invention.
The vibration time refers to the time when the vibration reminder needs to be sent, and the time can be understood as a time period and can also be understood as a certain moment. If the vibration time is a time period, the fluctuation range may be an average value of the fluctuation range of the time period.
As shown in fig. 2, each time point corresponds to a fluctuation amplitude, and if the time point is a vibration time, the fluctuation amplitude is the corresponding fluctuation amplitude of the vibration time in the audio data.
302: and controlling the terminal equipment to send out vibration prompt at the vibration time, wherein the vibration intensity is stronger when the fluctuation amplitude corresponding to the vibration time is larger.
In the present embodiment, the intensity of the vibrations may correspond exactly to the amplitude of the wave motion or may correspond hierarchically, where exactly to each value of the vibration amplitude corresponds to a different intensity of the vibrations, more specifically: with the amplitude of the fluctuation as an argument and the intensity of the vibrations as a function, the function is then an increasing function. The grading corresponding mode is that a certain interval vibration amplitude interval corresponds to certain level vibration intensity. The former is more precise and can reflect the corresponding relation between the audio data and the vibration intensity; the latter has a smaller data throughput.
Based on the above embodiment, the vibration amplitude of the vibration prompt is controlled by using the fluctuation amplitude of the audio data, so that the vibration is rich in rhythm and aesthetic feeling, and meanwhile, the prompt effect of the vibration is improved.
In this embodiment, when the terminal device is controlled to send out the vibration prompt at the vibration time, the audio data may be played simultaneously. The audio reminding and the vibration reminding are perfectly matched. In addition, if the terminal device is in the vibration mode, it is not necessary to play audio data at the same time.
In one possible implementation, an embodiment of a more refined control using a vibration alert is also provided, as follows: before determining the corresponding fluctuation amplitude of the vibration time in the fluctuation data, the method further includes:
determining the average fluctuation amplitude of the fluctuation data, intercepting the time of the fluctuation amplitude smaller than the average fluctuation amplitude in the fluctuation data as non-vibration time, and taking the time of the fluctuation data except the non-vibration time as vibration time.
In the embodiment, the parts with smaller vibration amplitude are filtered, and the terminal equipment cannot send out vibration reminding at the corresponding time or time period of the parts with smaller vibration amplitude; on one hand, the noise of small vibration can be filtered, the vibration time is reduced, and the energy is saved; on the other hand, the data processing amount required for the vibration control can be reduced.
In one possible implementation manner, the obtaining of the fluctuation data corresponding to the audio data includes:
and intercepting the climax, the drum points and the rhythm points in the audio data to obtain fluctuation data corresponding to the climax, the drum points and the rhythm points.
In this embodiment, music data is used as audio data, and the music data can vibrate to remind the corresponding music data; for example: the mobile phone in the vibration mode is in music data which should be played in the non-vibration mode. By taking climax, drum points and rhythm points as fluctuation data, other fluctuation data can be filtered, the vibration time can be reduced, noise which cannot distinguish types can be filtered, and energy can be saved; on the other hand, the data processing amount required for the vibration control can be reduced.
In the music data, there are climax, drum dots, and rhythm dots of music; among them, climax manifests as: the variation frequency of parameters such as pitch and loudness is large; the drum points appear as: the sound volume is larger at the rhythm point; the rhythm point appears as: the point in time at which the beat of the music is located.
In one possible implementation, a determination of the vibration time is also provided, specifically as follows: before determining the corresponding fluctuation amplitude of the vibration time in the fluctuation data, the method further includes:
and determining the average fluctuation amplitude of the fluctuation data, and intercepting the time of which the fluctuation amplitude is larger than the average fluctuation amplitude in the fluctuation data as the vibration time.
In this embodiment, the time when the fluctuation amplitude in the fluctuation data is larger than the average fluctuation amplitude is often continuous or may be discontinuous; the shaking time may be intermittent or continuous. Since only the time in which the fluctuation amplitude is larger than the average fluctuation amplitude in the fluctuation data is intercepted as the vibration time, the terminal device does not need to execute vibration at all times, and does not need to execute control processing of vibration alert for all vibration amplitudes, so that energy can be saved and the data processing amount can be reduced.
Fig. 4 is a schematic diagram corresponding to fig. 3, in which the time corresponding to the column is the vibration time.
In a possible implementation manner, before the controlling the terminal device to issue the vibration alert at the vibration time, the method further includes:
subtracting the average fluctuation amplitude from the fluctuation amplitude corresponding to each vibration moment in the vibration time to obtain a reference fluctuation amplitude of the vibration time, and dividing the reference fluctuation amplitude into N intervals from low to high, wherein N is an integer greater than 1;
the step of increasing the intensity of the vibration when the fluctuation amplitude corresponding to the vibration time is larger includes:
each interval corresponds to the intensity of one vibration, and the larger the reference fluctuation amplitude is, the larger the intensity of the vibration corresponding to the interval in which the interval is located is.
The embodiment provides a vibration strength control scheme, and since each interval corresponds to the strength of one vibration, the vibration strength is divided into N levels correspondingly; in the control mode, the vibration intensity adjustment times can be greatly reduced, and the data processing amount for controlling the vibration reminding can be greatly reduced.
Fig. 4 is a schematic diagram corresponding to fig. 3, in which the height of the pillar corresponds to the vibration intensity. The vibration intensity is divided into 4 levels in the diagram shown in fig. 4, and therefore the average amplitude is divided into 4 intervals in fig. 3, i.e., N is 4.
In a possible implementation manner, before the controlling the terminal device to issue the vibration alert at the vibration time, the method further includes:
and storing the vibration strength values of the intervals to which the fluctuation amplitudes corresponding to the vibration moments belong into an array according to the time sequence of the vibration moments.
Based on the division of the reference fluctuation range, the reference fluctuation range with a longer time is in a certain interval; accordingly, a certain vibration intensity for a long time may occur in the actual processing; this provides convenience for data storage to control shock. Data storage is used in this embodiment. Since the values are stored in chronological order, the data is an ordered array. The embodiment stores the data for controlling the vibration reminding, so that the storage space can be saved. The intensity value may in this embodiment be specifically an intensity level.
In a possible implementation manner, the controlling the terminal device to send out the vibration reminder at the vibration time includes:
and sequentially reading the vibration strength values from the array, and controlling the terminal equipment to send out vibration prompt according to the read vibration strength values.
In the embodiment, the intensity value of the vibration in the ordered data is read, so that the vibration reminding can be quickly executed according to the intensity value when the vibration reminding is controlled, the data processing amount is extremely small, and the control efficiency is high.
The following embodiments will exemplify a terminal device as a mobile phone.
In the embodiment of the invention, the sound can be cut into a plurality of vibration areas with different duration and intensity according to the converted fluctuation diagram so as to be called by the mobile phone.
Since audio has fluctuations of pitch and bass as opposed to climax and prelude parts. If the vibration intensity is fixed or random, it cannot be matched with the audio at the time of vibration cue. In addition, if in the vibration reminding process, the vibration experience effect is poor from beginning to end. The main idea of the embodiment of the invention is to follow the vibration of the audio frequency, filter the basic range and vibrate only at time points such as climax, key drum points and nodes, so that the vibration reminding is perfectly matched with the audio frequency, and in addition, the vibration influencing the experience can be reduced, and the energy is saved. Specifically, as shown in fig. 5, the method includes:
501: the audio is converted into a fluctuating graph.
502: and summing the up-and-down fluctuation of all nodes in the fluctuation graph, and dividing the sum by the number of all nodes to obtain the up-and-down fluctuation average range A of the fluctuation graph.
Because the audio frequency has a sampling rate, each sampling point corresponds to a moment and also corresponds to a fluctuation value; the sample point may be taken as a node. In addition, the nodes are not necessarily equal to the sampling points, the number of the nodes may be less than the number of the sampling points, and specifically, the interval between the nodes may be greater than the interval between the sampling points, for example: and intercepting one sampling point every 5 sampling points as a node.
503: comparing the fluctuation values of all nodes of the fluctuation graph with the average range A, and setting the area with the fluctuation values larger than the average range A as B. This B is the region in the time dimension where the vibration is needed.
504: and calculating the point with the maximum upper and lower fluctuation amplitude in the fluctuation diagram, and setting the amplitude as x. The average amplitude value a is subtracted from x, and the resulting value is equally divided into 4 equal segments, [0, a ], [ a, b ], [ b, c ], and [ c, d ], where a ═ x-a)/4, b ═ x-a)/2, c ═ 3(x-a)/4, and d ═ x-a. The four intervals correspond to the strong and weak effects of 4-grade vibration from low to high in sequence, and the 4 intervals can be recorded as Z.
In the 4 interval divisions, the three endpoint values of a, b and c are overlapped among the intervals, because the four intervals contain endpoint values, the a, b and c can be divided into only one interval; the interval division mode can also be used, and when the files corresponding to the nodes are marked, the interval division mode can be used
505: and comparing all the nodes in the vibration area B with Z, and respectively marking the fluctuation areas corresponding to all the nodes in the vibration area B as the order of several orders.
For example: the fluctuation amplitude of the node M is M, firstly (M-A) is calculated, and if (M-A) is in the [ a, b ] interval, the node M is the 2 nd gear.
506: and combining all the nodes in the area B and the corresponding vibration gears into an array. For use during play.
The array can be a binary array, and the two elements contained in the binary array are respectively: the vibration time and the gear corresponding to the vibration time are as follows: the binary array is defined as: int Shock _ array [ t ] [4 ]; where "int" is the type specification, "Shock _ array" is the name of the array, "t" is the first constant, and "4" is the second constant; the second constant is 4 because 4 steps are taken as an example, and the value of the second constant depends on the total steps; the first constant t is determined by the number of deposited nodes and may therefore be a variable constant. Assuming that the time corresponding to the node M is T, the specific value of the node M stored in the binary array may be Shock _ array [ T ] [1 ]; since the array starts counting with 0, the second element value "1" may be used to represent second gear.
The embodiment of the invention realizes the perfect combination of audio and vibration, and improves the user experience by matching the vibration in the scene needing to play the audio.
An embodiment of the present invention further provides a terminal device, as shown in fig. 6, including:
a data obtaining unit 601, configured to obtain fluctuation data corresponding to the audio data;
an amplitude determining unit 602, configured to determine a fluctuation amplitude corresponding to the vibration time in the fluctuation data;
and a reminding control unit 603, configured to control the terminal device to send a vibration reminding at the vibration time, where the larger the fluctuation range corresponding to the vibration time is, the stronger the vibration intensity is.
The audio data may be audio data played together with vibrations, and the fluctuation data of the audio data is data indicating the fluctuation amplitude of the audio data at each point in time. The amplitude of the fluctuation may correspond to the pitch or loudness of the sound, which usually represents the audio data, in particular the melody of music; the loudness can better reflect the emotional expression of music; which parameter is specifically adopted to correspond to the fluctuation amplitude is not limited uniquely in the embodiment of the present invention.
The vibration time refers to the time when the vibration reminder needs to be sent, and the time can be understood as a time period and can also be understood as a certain moment. If the vibration time is a time period, the fluctuation range may be an average value of the fluctuation range of the time period.
As shown in fig. 2, each time point corresponds to a fluctuation amplitude, and if the time point is a vibration time, the fluctuation amplitude is the corresponding fluctuation amplitude of the vibration time in the audio data.
In the present embodiment, the intensity of the vibrations may correspond exactly to the amplitude of the wave motion or may correspond hierarchically, where exactly to each value of the vibration amplitude corresponds to a different intensity of the vibrations, more specifically: with the amplitude of the fluctuation as an argument and the intensity of the vibrations as a function, the function is then an increasing function. The grading corresponding mode is that a certain interval vibration amplitude interval corresponds to certain level vibration intensity. The former is more precise and can reflect the corresponding relation between the audio data and the vibration intensity; the latter has a smaller data throughput.
Based on the above embodiment, the vibration amplitude of the vibration prompt is controlled by using the fluctuation amplitude of the audio data, so that the vibration is rich in rhythm and aesthetic feeling, and meanwhile, the prompt effect of the vibration is improved.
In this embodiment, when the terminal device is controlled to send out the vibration prompt at the vibration time, the audio data may be played simultaneously. The audio reminding and the vibration reminding are perfectly matched. In addition, if the terminal device is in the vibration mode, it is not necessary to play audio data at the same time.
In a possible implementation manner, as shown in fig. 7, the terminal device further includes:
a non-vibration determining unit 701, configured to determine an average fluctuation width of the fluctuation data before the amplitude determining unit 602 determines that the vibration time is the corresponding fluctuation width in the fluctuation data, intercept a time in the fluctuation data in which the fluctuation width is smaller than the average fluctuation width as a non-vibration time, and take a time in the fluctuation data other than the non-vibration time as the vibration time.
In the embodiment, the parts with smaller vibration amplitude are filtered, and the terminal equipment cannot send out vibration reminding at the corresponding time or time period of the parts with smaller vibration amplitude; on one hand, the noise of small vibration can be filtered, the vibration time is reduced, and the energy is saved; on the other hand, the data processing amount required for the vibration control can be reduced.
In a possible implementation manner, the data obtaining unit 601 is configured to intercept a climax, a drum point, and a rhythm point in the audio data, and obtain fluctuation data corresponding to the climax, the drum point, and the rhythm point; the audio data is music data.
In this embodiment, music data is used as audio data, and the music data can vibrate to remind the corresponding music data; for example: the mobile phone in the vibration mode is in music data which should be played in the non-vibration mode. By taking climax, drum points and rhythm points as fluctuation data, other fluctuation data can be filtered, the vibration time can be reduced, noise which cannot distinguish types can be filtered, and energy can be saved; on the other hand, the data processing amount required for the vibration control can be reduced.
In a possible implementation manner, as shown in fig. 7, the terminal device further includes:
a vibration determining unit 702, configured to determine an average fluctuation width of the fluctuation data before the amplitude determining unit 602 determines that the vibration time is the corresponding fluctuation width in the fluctuation data, and intercept a time in the fluctuation data in which the fluctuation width is larger than the average fluctuation width as the vibration time.
In this embodiment, the time when the fluctuation amplitude in the fluctuation data is larger than the average fluctuation amplitude is often continuous or may be discontinuous; the shaking time may be intermittent or continuous. Since only the time in which the fluctuation amplitude is larger than the average fluctuation amplitude in the fluctuation data is intercepted as the vibration time, the terminal device does not need to execute vibration at all times, and does not need to execute control processing of vibration alert for all vibration amplitudes, so that energy can be saved and the data processing amount can be reduced.
Fig. 4 is a schematic diagram corresponding to fig. 3, in which the time corresponding to the column is the vibration time.
In a possible implementation manner, the vibration determining unit 702 is further configured to, before the alert control unit 603 controls the terminal device to issue the vibration alert at the vibration time, subtract the average fluctuation amplitude from the fluctuation amplitude corresponding to each vibration time in the vibration time to obtain a reference fluctuation amplitude of the vibration time, and divide the reference fluctuation amplitude into N sections from low to high, where N is an integer greater than 1;
the reminding control unit 603 is configured to control the terminal device to send out a vibration reminding at the vibration time, where each interval corresponds to a vibration intensity, and the larger the reference fluctuation range is, the larger the vibration intensity of the interval where the terminal device is located is.
The embodiment provides a vibration strength control scheme, and since each interval corresponds to the strength of one vibration, the vibration strength is divided into N levels correspondingly; in the control mode, the vibration intensity adjustment times can be greatly reduced, and the data processing amount for controlling the vibration reminding can be greatly reduced.
Fig. 4 is a schematic diagram corresponding to fig. 3, in which the height of the pillar corresponds to the vibration intensity. The vibration intensity is divided into 4 levels in the diagram shown in fig. 4, and therefore the average amplitude is divided into 4 intervals in fig. 3, i.e., N is 4.
In a possible implementation manner, the vibration determining unit 702 is further configured to store, in an array, the vibration intensity value of the vibration in the interval to which the fluctuation amplitude corresponding to the vibration time belongs according to the time sequence of the vibration time before the reminding control unit 603 controls the terminal device to send the vibration reminder at the vibration time;
the reminding control unit 603 is configured to read the vibration intensity values from the arrays in sequence, and control the terminal device to send out a vibration reminder according to the read vibration intensity values.
Based on the division of the reference fluctuation range, the reference fluctuation range with a longer time is in a certain interval; accordingly, a certain vibration intensity for a long time may occur in the actual processing; this provides convenience for data storage to control shock. Data storage is used in this embodiment. Since the values are stored in chronological order, the data is an ordered array. The embodiment stores the data for controlling the vibration reminding, so that the storage space can be saved. The intensity value may in this embodiment be specifically an intensity level.
In the embodiment, the intensity value of the vibration in the ordered data is read, so that the vibration reminding can be quickly executed according to the intensity value when the vibration reminding is controlled, the data processing amount is extremely small, and the control efficiency is high.
Referring to fig. 8, fig. 8 is a schematic block diagram of a terminal device according to another embodiment of the present application. As shown, the terminal device in this embodiment may include: one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804. The processor 801, the input device 802, the output device 803, and the memory 804 described above are connected by a bus 805. The memory 802 is used to store a computer program comprising program instructions and the processor 801 is used to execute the program instructions stored by the memory 802. Wherein the processor 801 is configured to call the program instructions to perform the method steps in the aforementioned method embodiments; or the functions of the units shown in fig. 6 or fig. 7.
It should be understood that in the embodiments of the present Application, the Processor 801 may be a Central Processing Unit (CPU), and the Processor may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 802 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 803 may include a display (LCD, etc.), a speaker, etc.
The memory 804 may include both read-only memory and random access memory, and provides instructions and data to the processor 801. A portion of the memory 804 may also include non-volatile random access memory. For example, the memory 804 may also store device type information.
The processor 801 in this embodiment may perform the method flows of the foregoing method embodiments.
Embodiments of the present invention further provide a storage medium, where a plurality of program instructions are stored, where the program instructions are adapted to be loaded by a processor and to execute any one of the above methods provided by the embodiments of the present invention.
Embodiments of the present invention also provide a computer program product, which contains a plurality of program instructions adapted to be loaded by a processor and to perform any of the above methods provided by embodiments of the present invention.
Based on the above embodiment, the vibration amplitude of the vibration prompt is controlled by using the fluctuation amplitude of the audio data, so that the vibration is rich in rhythm and aesthetic feeling, and meanwhile, the prompt effect of the vibration is improved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the communication apparatus and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described above in accordance with the embodiments of the invention may be generated, in whole or in part, when the computer program instructions described above are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Versatile Disk (DVD)), a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media that can store program codes, such as a read-only memory (ROM) or a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Claims (8)

1. A reminding method of terminal equipment is characterized by comprising the following steps:
obtaining fluctuation data corresponding to the audio data, wherein the fluctuation data of the audio data is used for representing the fluctuation amplitude of the audio data at each time point;
determining the average fluctuation amplitude of the fluctuation data, and determining vibration time and non-vibration time according to the average fluctuation amplitude;
determining the corresponding fluctuation amplitude of the vibration time in the fluctuation data;
subtracting the average fluctuation amplitude from the fluctuation amplitude corresponding to each vibration moment in the vibration time to obtain a reference fluctuation amplitude of the vibration time;
determining the interval where each reference fluctuation amplitude is located, wherein one interval corresponds to one vibration gear, and each interval is obtained by subtracting the average amplitude value from the amplitude value of the point with the maximum upper and lower fluctuation amplitudes to obtain a difference value and equally dividing the difference value;
synthesizing to obtain an array according to the vibration gear of the interval where the reference fluctuation amplitude corresponding to each vibration moment in the vibration time is located and the determined vibration duration;
and controlling the terminal equipment to send out vibration prompt at the vibration time according to the vibration gear and the vibration duration in each array, wherein the larger the fluctuation amplitude corresponding to the vibration time is, the stronger the vibration strength is.
2. The method of claim 1, wherein determining an average fluctuation amplitude of the fluctuation data, and determining the vibration time and the non-vibration time according to the average fluctuation amplitude comprises:
and determining the average fluctuation amplitude of the fluctuation data, intercepting the time of the fluctuation amplitude smaller than the average fluctuation amplitude in the fluctuation data as non-vibration time, and taking the time of the fluctuation data except the non-vibration time as vibration time.
3. The method according to claim 1 or 2, wherein the audio data is music data, and the obtaining of fluctuation data corresponding to the audio data comprises:
and intercepting the climax, the drum points and the rhythm points in the audio data to obtain fluctuation data corresponding to the climax, the drum points and the rhythm points.
4. The method according to claim 1 or 2, wherein the determining an average fluctuation amplitude of the fluctuation data, and the determining a vibration time and a non-vibration time according to the average fluctuation amplitude comprises:
and determining the average fluctuation amplitude of the fluctuation data, and intercepting the time of the fluctuation amplitude larger than the average fluctuation amplitude in the fluctuation data as the vibration time.
5. A terminal device, comprising:
a data obtaining unit for obtaining fluctuation data corresponding to the audio data, the fluctuation data of the audio data being data for representing fluctuation amplitudes of the audio data at respective time points;
the vibration determining unit is used for determining the average fluctuation amplitude of the fluctuation data and determining vibration time and non-vibration time according to the average fluctuation amplitude;
the amplitude determining unit is used for determining the corresponding fluctuation amplitude of the vibration time in the fluctuation data;
the reminding control unit is used for subtracting the average fluctuation amplitude from the fluctuation amplitude corresponding to each vibration moment in the vibration time to obtain a reference fluctuation amplitude of the vibration time; determining the interval where each reference fluctuation amplitude is located, wherein one interval corresponds to one vibration gear, and each interval is obtained by subtracting the average amplitude value from the amplitude value of the point with the maximum upper and lower fluctuation amplitudes to obtain a difference value and equally dividing the difference value; synthesizing to obtain an array according to the vibration gear of the interval where the reference fluctuation amplitude corresponding to each vibration moment in the vibration time is located and the determined vibration duration; and controlling the terminal equipment to send out vibration prompt at the vibration time according to the vibration gear and the vibration duration in each array, wherein the larger the fluctuation amplitude corresponding to the vibration time is, the stronger the vibration strength is.
6. The terminal device according to claim 5,
the data acquisition unit is used for intercepting climax, drum points and rhythm points in the audio data to acquire fluctuation data corresponding to the climax, the drum points and the rhythm points; the audio data is music data.
7. A terminal device comprising a memory and a processor, the memory for storing program instructions, the program instructions being adapted to be loaded by the processor;
the processor being configured to load the program instructions and to perform the method of any of claims 1 to 4.
8. A computer storage medium, having stored thereon a computer program, the computer program product comprising computer instructions which, when loaded and executed on a computer, cause the method according to any one of claims 1 to 4 to be carried out.
CN201811140844.0A 2018-09-28 2018-09-28 Reminding method of terminal equipment and related product Active CN110971743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811140844.0A CN110971743B (en) 2018-09-28 2018-09-28 Reminding method of terminal equipment and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811140844.0A CN110971743B (en) 2018-09-28 2018-09-28 Reminding method of terminal equipment and related product

Publications (2)

Publication Number Publication Date
CN110971743A CN110971743A (en) 2020-04-07
CN110971743B true CN110971743B (en) 2022-01-18

Family

ID=70026810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811140844.0A Active CN110971743B (en) 2018-09-28 2018-09-28 Reminding method of terminal equipment and related product

Country Status (1)

Country Link
CN (1) CN110971743B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866732B (en) * 2020-12-30 2023-04-25 广州方硅信息技术有限公司 Music broadcasting method and device, equipment and medium thereof
CN114613376A (en) * 2022-03-25 2022-06-10 歌尔股份有限公司 Vibration processing method and device of wearable device, wearable device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552822A (en) * 2008-12-31 2009-10-07 上海闻泰电子科技有限公司 An implementation method of a mobile terminal ring
CN102088498A (en) * 2009-12-04 2011-06-08 深圳富泰宏精密工业有限公司 Mobile phone and method for assisting in keeping fit with same
CN204203669U (en) * 2014-11-14 2015-03-11 沈阳市创奇游乐设备有限公司 A kind of recreation facility music control operation platform
CN105245704A (en) * 2015-09-25 2016-01-13 努比亚技术有限公司 Call reminding method and device for mobile terminal
WO2018052273A1 (en) * 2016-09-19 2018-03-22 주식회사 잼이지 Method and tuning assistance device for detecting played note of instrument

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108040181A (en) * 2018-01-12 2018-05-15 广东欧珀移动通信有限公司 Audio frequency playing method, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552822A (en) * 2008-12-31 2009-10-07 上海闻泰电子科技有限公司 An implementation method of a mobile terminal ring
CN102088498A (en) * 2009-12-04 2011-06-08 深圳富泰宏精密工业有限公司 Mobile phone and method for assisting in keeping fit with same
CN204203669U (en) * 2014-11-14 2015-03-11 沈阳市创奇游乐设备有限公司 A kind of recreation facility music control operation platform
CN105245704A (en) * 2015-09-25 2016-01-13 努比亚技术有限公司 Call reminding method and device for mobile terminal
WO2018052273A1 (en) * 2016-09-19 2018-03-22 주식회사 잼이지 Method and tuning assistance device for detecting played note of instrument

Also Published As

Publication number Publication date
CN110971743A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN105611458B (en) A kind of directional recording control method and device of mobile terminal
CN104021148B (en) Method and device for adjusting sound effect
CN110971743B (en) Reminding method of terminal equipment and related product
KR20040022442A (en) Speakker equalization tool
CN104170011A (en) Methods and systems for karaoke on a mobile device
CN105824610A (en) Method and device for arranging application program icons based on terminal
KR20140143028A (en) Method for operating program and an electronic device thereof
CN104092809A (en) Communication sound recording method and recorded communication sound playing method and device
CN106775568A (en) A kind of effect adjusting method, device and mobile terminal
CN106470284A (en) Eliminate method, device, system, server and the communicator of acoustic echo
CN110688518A (en) Rhythm point determining method, device, equipment and storage medium
US9008639B2 (en) Controlling audio of a device
US20140086422A1 (en) Electronic device, system and method for managing sound effect
CN106714033A (en) Method for preventing cracking voice of audio device, and terminal
US20080255688A1 (en) Changing a display based on transients in audio data
CN109559757A (en) A kind of method of canceling noise and mobile terminal
CN104656412A (en) Method for adjusting alarm
CN105115592B (en) Cranial cavity method for detecting vibration and device
CN105718165B (en) A kind of starting method and device of terminal background application
CN104575545A (en) Method for generating playlist
CN110321020B (en) Piezoelectric sensor signal noise removing method and device
WO2023016208A1 (en) Audio signal compensation method and apparatus, earbud, and storage medium
CN109195072A (en) Audio broadcasting control system and method based on automobile
CN106328111B (en) Audio-frequency processing method and device
CN105319582A (en) Method and device for selection of seismic attribute parameters

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40021375

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant