CN106713668B - Method and device for controlling vibration of terminal - Google Patents
Method and device for controlling vibration of terminal Download PDFInfo
- Publication number
- CN106713668B CN106713668B CN201710092268.6A CN201710092268A CN106713668B CN 106713668 B CN106713668 B CN 106713668B CN 201710092268 A CN201710092268 A CN 201710092268A CN 106713668 B CN106713668 B CN 106713668B
- Authority
- CN
- China
- Prior art keywords
- audio data
- audio
- frequency
- terminal
- vibration
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a method and a device for controlling vibration of a terminal, wherein the method comprises the following steps: acquiring audio data to be played by a terminal; acquiring audio frequency corresponding to the audio data; when the audio data is played, the vibration device of the control terminal vibrates, and the vibration frequency of the vibration device is adjusted according to the audio frequency. According to the invention, when the terminal plays the audio, the frequency of vibration of the terminal can be controlled according to the frequency of the audio, and even if a user cannot hear the sound of the audio, the user can sense the audio being played by sensing the vibration of the terminal during the audio playing, so that the sensory experience of the user is enriched.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for controlling vibration of a terminal.
Background
At present, a dynamic image is generally provided in a social application of a mobile phone terminal as an expression for a user to use in communication, and in order to improve the sensory experience of the user, part of the expression is provided with audio.
However, in some scenarios, the user may set the handset to a mute state. For example, some users may want the phone to be muted when the phone is shaken instead of playing a ring tone when they want to call. At this time, when the expression carrying the audio is displayed to the user, the user cannot hear the sound corresponding to the expression because the mobile phone is in a mute state, and the sensory experience of the audio is lost.
Therefore, there is a need for a solution that allows the audio to still be perceived by the user when the handset is in a silent mode.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a terminal and a computer readable storage medium for controlling a terminal to vibrate, so as to solve the problem that a user cannot perceive audio when the terminal is in a mute state.
The technical scheme adopted by the invention for solving the technical problems is as follows:
according to an aspect of the present invention, there is provided a method of controlling vibration of a terminal, including: when a dynamic image to be played is selected in the social application and used as an expression, detecting audio data associated with the dynamic image in the terminal to serve as the audio data to be played; analyzing the audio data to obtain audio frequencies of the audio data in a plurality of time periods in a playing time length; when the terminal plays the audio data in a mute state, controlling a vibration device of the terminal to vibrate, and adjusting the vibration frequency of the vibration device according to the audio frequency of the audio data in a plurality of time periods in the playing duration; and when the terminal plays the audio data in a non-mute state, controlling the vibration device not to vibrate.
According to another aspect of the present invention, there is provided an apparatus for controlling vibration of a terminal, comprising: the audio data acquisition module is used for detecting audio data related to the dynamic image in the terminal as audio data to be played when the dynamic image to be played is selected in the social application and used as an expression; the audio frequency acquisition module is used for analyzing the audio data to obtain audio frequencies of the audio data in a plurality of time periods in the playing time length; the vibration control module is used for controlling a vibration device of the terminal to vibrate when the audio data is played by the terminal in a mute state, and adjusting the vibration frequency of the vibration device according to the audio frequency of the audio data in a plurality of time periods in the playing time length; and when the terminal plays the audio data in a non-mute state, controlling the vibration device not to vibrate.
According to another aspect of the present invention, there is provided a terminal including: a memory for storing executable instructions; a processor, configured to execute the computer-executable instructions stored in the memory, to implement the steps of the method according to the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium having stored thereon computer-executable instructions for, when executed, implementing the steps of the method according to an embodiment of the present invention.
According to the above technical solutions, it can be known that the method, the apparatus, the terminal and the computer-readable storage medium for controlling the vibration of the terminal of the present invention have at least the following beneficial effects:
in the technical scheme of the invention, when the terminal plays the audio, the frequency of vibration of the terminal can be controlled according to the frequency of the audio, and even if a user cannot hear the sound of the audio, the user can perceive the audio being played by sensing the vibration of the terminal during the audio playing, so that the sensory experience of the user is enriched.
Drawings
Fig. 1 is a flowchart illustrating a method for controlling a vibration of a terminal according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for controlling vibration of a terminal according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a method for controlling vibration of a terminal according to an embodiment of the present invention;
fig. 4 is a block diagram of an apparatus for controlling vibration of a terminal according to an embodiment of the present invention;
fig. 5 is a block diagram of another apparatus for controlling vibration of a terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, an embodiment of the present invention provides a method for controlling terminal vibration, where the method of the embodiment is suitable for a mobile terminal for use when the mobile terminal plays audio, and the mobile terminal includes but is not limited to a mobile phone; the method of the embodiment may include:
step S110, obtaining audio data to be played by the terminal. In this embodiment, the type of the audio data is not limited, and the audio data may be a song from a network, a received voice, an audio part in an audio-video file, a ring tone of a mobile phone, or the like.
Step S120, an audio frequency corresponding to the audio data is obtained. In this embodiment, the manner of obtaining the audio frequency is not limited, and the audio frequency may be analyzed after the audio data is obtained, or the recorded audio frequency information may be obtained; in this embodiment, the audio frequency may be the highest, lowest or average frequency of the audio data in the whole playing time length, or may be the frequency of the audio data at different time points or time periods in the playing time length.
Step S130, when playing the audio data, controlling the vibration device of the terminal to vibrate, and adjusting the vibration frequency of the vibration device according to the audio frequency. In this embodiment, for the mobile phone, the vibration device is a vibration motor provided in the mobile phone; in the present embodiment, the audio frequency of the audio data corresponds to the vibration frequency of the vibration device, that is, the frequency characteristic of the audio data is delivered to the user by the vibration form.
In this embodiment, when the terminal plays audio, the frequency of vibration of the terminal can be controlled according to the frequency of the audio, and even if a user cannot hear the sound of the audio, the user can perceive the audio being played by feeling the vibration of the terminal during audio playing, so that the sensory experience of the user is enriched.
As shown in fig. 2, in an embodiment of the present invention, a method for controlling a vibration of a terminal is provided, and the method of the embodiment may include:
step S210, when the user selects the dynamic image to be played, detecting whether audio data associated with the dynamic image exists, and if so, using the audio data associated with the dynamic image as the audio data to be played. In this embodiment, the dynamic image may be an expression image displayed in the social tool, and some expression images are carried with corresponding sound effects during display. Therefore, when the technical scheme of the embodiment is used for displaying a scene of an expression image, whether the expression image carries audio data needs to be detected, and if the expression image carries the audio data, the audio data needs to be acquired.
Step S220, determining whether the terminal is currently in a mute state. In this embodiment, since the sound played by the audio data can be heard by the user when the terminal is in the normal mode capable of playing the sound, and at this time, the sound does not need to be transmitted to the user in a vibration form, it is not necessary to convert the sound into a vibration form when the terminal is in the non-silent state, so as to reduce the energy consumption of the terminal.
In step S230, when the determination result is yes, the audio frequencies of the audio data in a plurality of time periods in the playing duration of the audio data are acquired. In the present embodiment, since the sound content of the audio data usually changes, the frequencies of the audio data in different time periods in the playing time period are different, and in order to make the terminal appear the sound change of the audio data when vibrating, the frequencies of the audio data in different time periods are obtained in the present embodiment; in the present embodiment, the length of the time period is not limited, and for example, the length of each time period may be 1 millisecond.
Step S220 specifically includes: the method comprises the steps of obtaining a plurality of preset index values and frequency values corresponding to the index values, wherein the index values represent a plurality of time periods in the playing time of the audio data, and the frequency values corresponding to the index values represent the audio frequency of the audio data in the time periods. In the present embodiment, a method of recording audio data frequencies is provided. Taking the audio data corresponding to the expression image as an example, when a maker makes a number expression image and sets a corresponding audio material, an audio management terminal is implemented according to the technical scheme of the embodiment to analyze an audio file and record the frequency length and the audio frequency (in Hz) of each millisecond.
In step S240, when the audio data is played, the current vibration frequency of the vibration device is adjusted according to the audio frequency of the current time period of the audio data. In this embodiment, relative to the aforementioned management terminal, the social tool on the mobile phone of the user is equivalent to the client, and when the user clicks the expression image at the client to display, according to the technical solution of this embodiment, whether the expression image has audio is determined, and if so, the recorded audio frequency is converted into the vibration frequency of the motor, and synchronous playing is performed.
According to the technical solution of this embodiment, as shown in fig. 3, after an expression maker sets audio data corresponding to an expression image, an audio tool at a management end analyzes the playing length of the audio data, assuming that the length of the audio tool is n milliseconds, the management end sets n indexes, the index value is 1-n, the nth millisecond represents the playing length of the audio data, after the management end reads the audio data into a cache, the audio analyzer analyzes the frequency of each millisecond in the playing length of the audio data, and records the frequency corresponding to the index, when a user displays a dynamic image at a social tool client, the user plays audio while starting a vibration motor of a mobile phone, and reads the index and the frequency value to control the vibration frequency of the mobile phone motor, so that the user can perceive the audio through a vibration mode by using the technical solution of this embodiment, the user's perception experience is increased.
As shown in fig. 4, an embodiment of the present invention provides an apparatus for controlling terminal vibration, and the apparatus of the embodiment is suitable for a mobile terminal for the mobile terminal to use when playing audio, and the mobile terminal includes but is not limited to a mobile phone; the apparatus of this embodiment may include:
the audio data obtaining module 410 obtains audio data to be played by the terminal. In this embodiment, the type of the audio data is not limited, and the audio data may be a song from a network, a received voice, an audio part in an audio-video file, a ring tone of a mobile phone, or the like.
The audio frequency obtaining module 420 obtains an audio frequency corresponding to the audio data. In this embodiment, the manner of obtaining the audio frequency is not limited, and the audio frequency may be analyzed after the audio data is obtained, or the recorded audio frequency information may be obtained; in this embodiment, the audio frequency may be the highest, lowest or average frequency of the audio data in the whole playing time length, or may be the frequency of the audio data at different time points or time periods in the playing time length.
The vibration control module 430 controls the vibration device of the terminal to vibrate when playing the audio data, and adjusts the vibration frequency of the vibration device according to the audio frequency. In this embodiment, for the mobile phone, the vibration device is a vibration motor provided in the mobile phone; in the present embodiment, the audio frequency of the audio data corresponds to the vibration frequency of the vibration device, that is, the frequency characteristic of the audio data is delivered to the user by the vibration form.
In this embodiment, when the terminal plays audio, the frequency of vibration of the terminal can be controlled according to the frequency of the audio, and even if a user cannot hear the sound of the audio, the user can perceive the audio being played by feeling the vibration of the terminal during audio playing, so that the sensory experience of the user is enriched.
As shown in fig. 5, an embodiment of the present invention provides an apparatus for controlling vibration of a terminal, and the apparatus of the embodiment may include:
the audio data obtaining module 510 detects whether there is audio data associated with the moving image when the user selects the moving image to be played, and takes the audio data associated with the moving image as the audio data to be played when there is the moving image. In this embodiment, the dynamic image may be an expression image displayed in the social tool, and some expression images are carried with corresponding sound effects during display. Therefore, when the technical scheme of the embodiment is used for displaying a scene of an expression image, whether the expression image carries audio data needs to be detected, and if the expression image carries the audio data, the audio data needs to be acquired.
The mute state determining module 520 determines whether the terminal is currently in a mute state. In this embodiment, since the sound played by the audio data can be heard by the user when the terminal is in the normal mode capable of playing the sound, and at this time, the sound does not need to be transmitted to the user in a vibration form, it is not necessary to convert the sound into a vibration form when the terminal is in the non-silent state, so as to reduce the energy consumption of the terminal.
The audio frequency obtaining module 530, if the determination result is yes, obtains audio frequencies of the audio data in a plurality of time periods in the playing duration of the audio data. In the present embodiment, since the sound content of the audio data usually changes, the frequencies of the audio data in different time periods in the playing time period are different, and in order to make the terminal appear the sound change of the audio data when vibrating, the frequencies of the audio data in different time periods are obtained in the present embodiment; in the present embodiment, the length of the time period is not limited, and for example, the length of each time period may be 1 millisecond.
The audio frequency obtaining module 530 obtains a plurality of preset index values and frequency values corresponding to the index values, where the index values represent a plurality of time periods in the playing duration of the audio data, and the frequency values corresponding to the index values represent audio frequencies of the audio data in the time periods. In the present embodiment, a method of recording audio data frequencies is provided. Taking the audio data corresponding to the expression image as an example, when a maker makes a number expression image and sets a corresponding audio material, an audio management terminal is implemented according to the technical scheme of the embodiment to analyze an audio file and record the frequency length and the audio frequency (in Hz) of each millisecond.
The vibration control module 540 adjusts the current vibration frequency of the vibration device according to the audio frequency of the current time period of the audio data when the audio data is played. In this embodiment, relative to the aforementioned management terminal, the social tool on the mobile phone of the user is equivalent to the client, and when the user clicks the expression image at the client to display, according to the technical solution of this embodiment, whether the expression image has audio is determined, and if so, the recorded audio frequency is converted into the vibration frequency of the motor, and synchronous playing is performed.
According to the technical solution of this embodiment, as shown in fig. 3, after an expression maker sets audio data corresponding to an expression image, an audio tool at a management end analyzes the playing length of the audio data, assuming that the length of the audio tool is n milliseconds, the management end sets n indexes, the index value is 1-n, the nth millisecond represents the playing length of the audio data, after the management end reads the audio data into a cache, the audio analyzer analyzes the frequency of each millisecond in the playing length of the audio data, and records the frequency corresponding to the index, when a user displays a dynamic image at a social tool client, the user plays audio while starting a vibration motor of a mobile phone, and reads the index and the frequency value to control the vibration frequency of the mobile phone motor, so that the user can perceive the audio through a vibration mode by using the technical solution of this embodiment, the user's perception experience is increased.
Fig. 6 is a schematic diagram illustrating only a portion related to an embodiment of the present invention for convenience of description, and please refer to a method portion of the embodiment of the present invention for reference, wherein details of the portion are not disclosed. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, wireless fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 60 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 600. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset 600 may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset 600, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset 600 also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone 600 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In the embodiment of the present invention, the processor 680 included in the terminal further has the following functions:
acquiring audio data to be played by a terminal;
acquiring audio frequency corresponding to the audio data;
and when the audio data is played, controlling a vibration device of the terminal to vibrate, and adjusting the vibration frequency of the vibration device according to the audio frequency.
The processor 680 further obtains audio frequencies of the audio data in a plurality of time periods in the playing duration of the audio data;
the processor 680 further adjusts the current vibration frequency of the vibration device according to the audio frequency of the current time period of the audio data when the audio data is played.
The processor 680 further obtains a plurality of preset index values and frequency values corresponding to the index values, where the index values represent a plurality of time periods in the playing time of the audio data, and the frequency values corresponding to the index values represent audio frequencies of the audio data in the time periods.
The processor 680 further determines whether the terminal is currently in a mute state, and if so, executes to acquire an audio frequency corresponding to the audio data.
The processor 680 further detects whether audio data associated with the moving image exists when the user selects the moving image to be played, and if so, takes the audio data associated with the moving image as the audio data to be played.
In addition, it is understood by those skilled in the art that all or part of the steps in the above method embodiments may be implemented by related hardware, and the corresponding program may be stored in a computer readable storage medium, where the above mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings, and are not to be construed as limiting the scope of the invention. Those skilled in the art can implement the invention in various modifications, such as features from one embodiment can be used in another embodiment to yield yet a further embodiment, without departing from the scope and spirit of the invention. Any modification, equivalent replacement and improvement made within the technical idea of using the present invention should be within the scope of the right of the present invention.
Claims (10)
1. A method of controlling vibration of a terminal, comprising:
when a dynamic image to be played is selected in the social application and used as an expression, detecting audio data associated with the dynamic image in the terminal to serve as the audio data to be played;
analyzing the audio data to obtain audio frequencies of the audio data in a plurality of time periods in a playing time length;
when the terminal plays the audio data in a mute state, controlling a vibration device of the terminal to vibrate, and adjusting the vibration frequency of the vibration device according to the audio frequency of the audio data in a plurality of time periods in the playing duration;
and when the terminal plays the audio data in a non-mute state, controlling the vibration device not to vibrate.
2. The method according to claim 1, wherein adjusting the vibration frequency of the vibration device according to the audio frequency of the audio data at a plurality of time periods in the playing duration specifically comprises:
obtaining the audio frequency of the audio data in the current time period according to the audio frequencies of the audio data in a plurality of time periods in the playing time period;
and adjusting the current vibration frequency of the vibration device according to the audio frequency of the audio data in the current time period.
3. The method according to claim 1, wherein analyzing the audio data to obtain audio frequencies of the audio data at a plurality of time periods in a playing duration specifically comprises:
the method comprises the steps of obtaining a plurality of preset index values and frequency values corresponding to the index values, wherein the index values represent a plurality of time periods in the playing time of the audio data, and the frequency values corresponding to the index values represent the audio frequency of the audio data in the time periods.
4. The method of claim 1, further comprising, before analyzing the audio data for audio frequencies for a plurality of time segments of the audio data in a play duration:
and judging whether the terminal is in a mute state currently, and if so, executing to acquire the audio frequency of the audio data in a plurality of time periods in the playing time length.
5. An apparatus for controlling vibration of a terminal, comprising:
the audio data acquisition module is used for detecting audio data related to the dynamic image in the terminal as audio data to be played when the dynamic image to be played is selected in the social application and used as an expression;
the audio frequency acquisition module is used for analyzing the audio data to obtain audio frequencies of the audio data in a plurality of time periods in the playing time length;
the vibration control module is used for controlling a vibration device of the terminal to vibrate when the audio data is played by the terminal in a mute state, and adjusting the vibration frequency of the vibration device according to the audio frequency of the audio data in a plurality of time periods in the playing time length; and when the terminal plays the audio data in a non-mute state, controlling the vibration device not to vibrate.
6. The apparatus of claim 5,
the vibration control module obtains the audio frequency of the audio data in the current time period according to the audio frequencies of the audio data in a plurality of time periods in the playing time period; and adjusting the current vibration frequency of the vibration device according to the audio frequency of the audio data in the current time period.
7. The apparatus of claim 5,
the audio frequency obtaining module obtains a plurality of preset index values and frequency values corresponding to the index values, the index values represent a plurality of time periods in the playing time of the audio data, and the frequency values corresponding to the index values represent the audio frequencies of the audio data in the time periods.
8. The apparatus of claim 5, further comprising:
and the audio frequency acquisition module is used for acquiring the audio frequency of the audio data in a plurality of time periods in the playing time length.
9. A terminal, comprising:
a memory for storing executable instructions;
a processor for implementing the method of controlling terminal vibration according to any one of claims 1 to 4 when executing executable instructions stored in the memory.
10. A computer-readable storage medium storing executable instructions for implementing the method of controlling terminal vibration according to any one of claims 1 to 4 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710092268.6A CN106713668B (en) | 2017-02-21 | 2017-02-21 | Method and device for controlling vibration of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710092268.6A CN106713668B (en) | 2017-02-21 | 2017-02-21 | Method and device for controlling vibration of terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106713668A CN106713668A (en) | 2017-05-24 |
CN106713668B true CN106713668B (en) | 2021-07-09 |
Family
ID=58917056
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710092268.6A Active CN106713668B (en) | 2017-02-21 | 2017-02-21 | Method and device for controlling vibration of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713668B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111261185A (en) * | 2020-01-10 | 2020-06-09 | 腾讯音乐娱乐科技(深圳)有限公司 | Method, device, system, equipment and storage medium for playing audio |
CN114115792A (en) * | 2021-11-25 | 2022-03-01 | 腾讯音乐娱乐科技(深圳)有限公司 | Audio processing method, server and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104506114A (en) * | 2014-12-15 | 2015-04-08 | 青岛海信移动通信技术股份有限公司 | Motor control method and device in mobile terminal |
CN104679046A (en) * | 2013-11-27 | 2015-06-03 | 成都优百沃科技有限公司 | Sound control circuit capable of controlling vibration frequency of mobile phone through sound |
CN105323731A (en) * | 2014-07-30 | 2016-02-10 | 中兴通讯股份有限公司 | Information transmission method and terminal device |
CN105976852A (en) * | 2016-04-28 | 2016-09-28 | 上海斐讯数据通信技术有限公司 | Music player |
CN106134218A (en) * | 2014-04-04 | 2016-11-16 | 歌乐株式会社 | Vibration audio devices, vibration audio-frequency inputting method and vibration audio program |
-
2017
- 2017-02-21 CN CN201710092268.6A patent/CN106713668B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679046A (en) * | 2013-11-27 | 2015-06-03 | 成都优百沃科技有限公司 | Sound control circuit capable of controlling vibration frequency of mobile phone through sound |
CN106134218A (en) * | 2014-04-04 | 2016-11-16 | 歌乐株式会社 | Vibration audio devices, vibration audio-frequency inputting method and vibration audio program |
CN105323731A (en) * | 2014-07-30 | 2016-02-10 | 中兴通讯股份有限公司 | Information transmission method and terminal device |
CN104506114A (en) * | 2014-12-15 | 2015-04-08 | 青岛海信移动通信技术股份有限公司 | Motor control method and device in mobile terminal |
CN105976852A (en) * | 2016-04-28 | 2016-09-28 | 上海斐讯数据通信技术有限公司 | Music player |
Also Published As
Publication number | Publication date |
---|---|
CN106713668A (en) | 2017-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103488939B (en) | Method, device and terminal for prompting user | |
US20190026068A1 (en) | Sound effect configuration method and system and related device | |
CN104393848B (en) | Volume adjusting method and device | |
CN104967896A (en) | Method for displaying bulletscreen comment information, and apparatus thereof | |
CN103618514A (en) | Volume adjustment method, device and electronic equipment | |
CN106506437B (en) | Audio data processing method and device | |
CN106911848B (en) | Method for outputting prompt message and terminal equipment | |
CN106210755A (en) | A kind of methods, devices and systems playing live video | |
CN106940997B (en) | Method and device for sending voice signal to voice recognition system | |
CN112997470B (en) | Audio output control method and device, computer readable storage medium and electronic equipment | |
WO2017215661A1 (en) | Scenario-based sound effect control method and electronic device | |
CN108492837B (en) | Method, device and storage medium for detecting audio burst white noise | |
CN107547704A (en) | Call MIC switching method, device and mobile terminal | |
CN112019929A (en) | Volume adjusting method and device | |
CN106791916B (en) | Method, device and system for recommending audio data | |
CN103647868B (en) | Reduce the method and apparatus that the tinkle of bells is bothered | |
CN112997471B (en) | Audio channel switching method and device, readable storage medium and electronic equipment | |
CN108881778B (en) | Video output method based on wearable device and wearable device | |
CN103491240A (en) | Alarm clock sounding method, device and mobile terminal | |
CN106126170B (en) | Sound effect setting method of terminal and terminal | |
CN109062533B (en) | Sound production control method, sound production control device, electronic device, and storage medium | |
CN106713668B (en) | Method and device for controlling vibration of terminal | |
CN109660445B (en) | Message processing method, device and storage medium | |
CN107622234B (en) | Method and device for displaying budding face gift | |
CN107728990B (en) | Audio playing method, mobile terminal and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |