CN112817227A - Information processing method and electronic equipment - Google Patents

Information processing method and electronic equipment Download PDF

Info

Publication number
CN112817227A
CN112817227A CN202011627594.0A CN202011627594A CN112817227A CN 112817227 A CN112817227 A CN 112817227A CN 202011627594 A CN202011627594 A CN 202011627594A CN 112817227 A CN112817227 A CN 112817227A
Authority
CN
China
Prior art keywords
response threshold
volume level
playing
audio file
current volume
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011627594.0A
Other languages
Chinese (zh)
Other versions
CN112817227B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011627594.0A priority Critical patent/CN112817227B/en
Publication of CN112817227A publication Critical patent/CN112817227A/en
Application granted granted Critical
Publication of CN112817227B publication Critical patent/CN112817227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G21/00Input or output devices integrated in time-pieces
    • G04G21/06Input or output devices integrated in time-pieces using voice
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses an information processing method and electronic equipment, wherein a current volume level is obtained, a response threshold of a flapping action is set to be a first threshold based on the current volume level, the response threshold is higher than an induction value corresponding to vibration generated when an audio file is played at the current volume level, and different volume levels correspond to different thresholds. According to the scheme, the corresponding response threshold value of the flapping action is set based on the current volume level, and the response threshold value is higher than the induction value corresponding to vibration generated when the audio file is played at the current volume level, so that different response threshold values are set at different volume levels, and therefore the false triggering caused by the influence of vibration generated when the response threshold value of the flapping action is influenced by sound output of the electronic equipment is avoided.

Description

Information processing method and electronic equipment
Technical Field
The present application relates to the field of control, and in particular, to an information processing method and an electronic device.
Background
For an electronic device that is triggered to open or close by tapping, the opening or closing of the electronic device is triggered when the tapping motion causes the vibration of the electronic device to reach a response threshold.
If the electronic device performs sound output, the electronic device itself may vibrate during playing an audio file, and when the intensity of vibration generated during playing the audio file by the device reaches a response threshold value, the electronic device may also be triggered to open or close by the vibration of music played by the device, and at this time, the user does not perform a tapping operation, which may cause a false trigger of the electronic device.
Disclosure of Invention
In view of the above, the present application provides an information processing method and an electronic device, and the specific scheme is as follows:
an information processing method comprising:
obtaining a current volume level;
setting a response threshold of a flapping action as a first threshold based on the current volume level, wherein the response threshold is higher than a sensing value corresponding to vibration generated when an audio file is played at the current volume level;
wherein different volume levels correspond to different thresholds.
Further, the obtaining the current volume level includes:
obtaining a playing instruction;
playing the audio file indicated by the playing instruction based on the current volume level;
the method further comprises the following steps:
obtaining induction parameters of input operation;
and responding to a first operation instruction of the flapping action if the sensing parameter is larger than the response threshold, wherein the first operation instruction is used for stopping/closing the playing of the audio file.
Further, the method also comprises the following steps:
if the playing of the audio file is closed, recovering the response threshold of the flapping action as an initial threshold;
and responding to a second operation instruction of the flapping action if the obtained sensing parameter of the input operation is larger than the response threshold, wherein the first operation instruction is different from the second operation instruction.
Further, the audio file indicated by the playing instruction is played based on the current volume level, and if the current volume level of the electronic device changes, the response threshold of the tapping action is dynamically adjusted.
Further, the method also comprises the following steps:
obtaining parameter information for representing the material of a placing surface for placing the electronic equipment;
and determining different thresholds corresponding to different volume levels corresponding to the material of the placing surface based on the parameter information.
Further, the obtaining of the parameter information for characterizing the material of the placing surface on which the electronic device is placed further includes:
and if the placing position of the electronic equipment is changed, obtaining parameter information for representing the material of a placing surface for placing the electronic equipment.
An electronic device, comprising:
the processor is used for obtaining a current volume level, setting a response threshold of a flapping action as a first threshold based on the current volume level, wherein the response threshold is higher than an induction value corresponding to vibration generated by playing an audio file at the current volume level, and different volume levels correspond to different thresholds;
and the player is used for playing the audio file.
Further, the method also comprises the following steps:
the sensor is used for obtaining induction parameters of input operation;
the processor obtains a playing instruction, and plays an audio file indicated by the playing instruction based on the current volume level;
the processor is further configured to obtain a sensing parameter of an input operation, and respond to a first operation instruction of the tapping motion if the sensing parameter is greater than the response threshold, where the first operation instruction is used to suspend/close the playing of the audio file.
Further, in the above-mentioned case,
the processor is further configured to: and if the playing of the audio file is closed, recovering the response threshold of the flapping action as an initial threshold, wherein if the obtained sensing parameter of the input operation is greater than the response threshold, responding to a second operation instruction of the flapping action, and the first operation instruction is different from the second operation instruction.
Further, the method also comprises the following steps:
the storage is used for storing parameter information representing the material of a placing surface for placing the electronic equipment;
the processor determines different thresholds corresponding to different volume levels corresponding to the material of the placing surface based on the parameter information.
According to the technical scheme, the information processing method and the electronic device disclosed by the application can obtain the current volume level, set the response threshold of the flapping action as the first threshold based on the current volume level, and the response threshold is higher than the induction value corresponding to the vibration generated when the audio file is played at the current volume level, wherein different volume levels correspond to different thresholds. According to the scheme, the corresponding response threshold value of the flapping action is set based on the current volume level, and the response threshold value is higher than the induction value corresponding to vibration generated when the audio file is played at the current volume level, so that different response threshold values are set at different volume levels, and therefore the false triggering caused by the influence of vibration generated when the response threshold value of the flapping action is influenced by sound output of the electronic equipment is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an information processing method disclosed in an embodiment of the present application;
fig. 2 is a flowchart of an information processing method disclosed in an embodiment of the present application;
FIG. 3 is a flow chart of an information processing method disclosed in an embodiment of the present application;
FIG. 4 is a flow chart of an information processing method disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
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 only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application discloses an information processing method, a flow chart of which is shown in fig. 1, comprising the following steps:
step S11, obtaining the current volume level;
step S12, setting a response threshold of the tapping motion as a first threshold based on the current volume level, where the response threshold is higher than a sensing value corresponding to vibration generated by playing an audio file at the current volume level, and different volume levels correspond to different thresholds.
The electronic device is capable of responding to a tapping action, in particular the electronic device having a sensor capable of sensing a vibration to which the electronic device responds when the vibration reaches a response threshold. For example: beating the electronic equipment to enable the electronic equipment to be lightened; alternatively, the electronic device is tapped to output an image, a sound, or the like. Of course, when the tapping motion performed on the electronic device reaches the response threshold, the electronic device may perform another motion in response to the tapping motion, which is not limited herein.
Setting the response threshold of the tapping action to be a first threshold based on the current volume level, wherein the current volume level may be the volume level at which the electronic device itself outputs audio, such as: a volume level for the music obtained if the electronic device outputs the music; or, the influence of sound in the environment on the electronic device may also be included, that is, the electronic device is placed in the environment due to the larger volume in the environment, so as to influence the electronic device, and the electronic device generates vibration, at this time, the vibration felt by the electronic device can be directly determined without determining the volume level, and the response threshold of the flapping motion is set; in this case, if both the volume output by the electronic device itself and the sound in the environment affect the device, the sensed value of the vibration of the electronic device may be determined based on the volume in the environment, and the response threshold may be determined based on the current volume level of the audio output by the electronic device itself and the sensed value sensed by the electronic device based on the volume in the environment.
Since sound is made of vibration, when sound exists in the current environment or the electronic device outputs audio, the electronic device can feel the vibration, when the electronic device feels the vibration caused by the sound, if the electronic device is flapped, the electronic device can actually generate the vibration due to the flapping motion, and the vibration caused by the sound felt by the electronic device affects the vibration felt by the electronic device due to the flapping motion, so that the sensing value of the vibration of the flapping motion felt by the electronic device is inaccurate.
If the response threshold of the electronic equipment to the flapping action is fixed, when the environment has larger sound, the electronic equipment placed in the environment can feel vibration, and if the sensing value of the vibration reaches the response threshold of the flapping action, the electronic equipment is triggered due to the sound in the environment, so that false triggering is caused; if the response threshold of the electronic device to the flapping motion is fixed, when the electronic device itself makes a sound and the electronic device generates a vibration, if the sensing value of the vibration reaches the response threshold of the flapping motion, the electronic device will be triggered due to the sound generated by the electronic device, and thus false triggering is caused. The flapping motion is used for triggering the electronic equipment to enable the electronic equipment to execute the corresponding instruction.
Therefore, if the vibration is caused by the sound emitted from the electronic device itself, when the response threshold is determined, the volume level of the sound output from the current electronic device is first determined, and the response threshold of the tapping motion is determined based on the current volume level.
Different volume levels correspond to different response thresholds, each volume level corresponds to a decibel range, different volume levels correspond to different decibel ranges, and every two decibel ranges are not overlapped with each other, for example: there are 10 volume levels, 10 decibel ranges for 10 volume levels, each volume level having a corresponding threshold, e.g.: the method comprises the steps of detecting that current sound is at a first volume level, determining that a response threshold corresponding to the first volume level is a first response threshold, and determining that a response threshold of a current flapping action is the first response threshold, so that the response threshold of the flapping action of the electronic equipment is adaptive to the current volume level.
The response threshold is higher than the sensing value corresponding to the vibration generated when the audio file is played at the current volume level, that is, the sensing value generated by the flapping action of the electronic equipment is larger than the sensing value corresponding to the vibration generated when the audio file is played at the current volume level, so that the electronic equipment is not triggered to respond due to the vibration generated when the audio file is played at the current volume level by the electronic equipment.
Therefore, the response threshold of the tapping action needs to be higher than the sensing value corresponding to the vibration generated by playing the audio file at the current volume level, and at this time, the vibration generated by playing the audio file by the electronic device can be filtered out, that is, the electronic device is not triggered to respond due to the vibration generated by playing the audio file by the electronic device.
The audio file is played under different volume levels to generate different induction values corresponding to vibration, different response thresholds are corresponding under different volume levels, and the response thresholds are larger than the vibration generated by playing the audio under the volume levels.
Such as: if the sensing value of the vibration generated when the electronic device plays the audio file at the first volume level is 20, the response threshold corresponding to the first volume level needs to be greater than 20, which may be: the response threshold corresponding to the first volume level is 30; if the sensing value of the vibration generated when the electronic device plays the audio file at the second volume level is 60, the response threshold corresponding to the second volume level needs to be greater than 60, which may be: the second volume level corresponds to a response threshold of 75.
In the information processing method disclosed in this embodiment, the current volume level is obtained, the response threshold of the tapping motion is set as the first threshold based on the current volume level, and the response threshold is higher than the sensing value corresponding to the vibration generated by playing the audio file at the current volume level, where different volume levels correspond to different thresholds. According to the scheme, the corresponding response threshold value of the flapping action is set based on the current volume level, and the response threshold value is higher than the induction value corresponding to vibration generated when the audio file is played at the current volume level, so that different response threshold values are set at different volume levels, and therefore the false triggering caused by the influence of vibration generated when the response threshold value of the flapping action is influenced by sound output of the electronic equipment is avoided. Or/and false triggering caused by the influence of vibration generated by ambient sound.
The present embodiment discloses an information processing method, a flowchart of which is shown in fig. 2, and includes:
step S21, obtaining a playing instruction, and playing the audio file indicated by the playing instruction based on the current volume level;
step S22, setting a response threshold of the flapping action as a first threshold based on the current volume level, wherein the response threshold is higher than an induction value corresponding to vibration generated by playing an audio file at the current volume level, and different volume levels correspond to different thresholds;
step S23, obtaining induction parameters of input operation;
and step S24, if the sensing parameter is larger than the response threshold, responding to a first operation instruction of the tapping action, wherein the first operation instruction is used for stopping/closing the playing of the audio file.
The present solution is implemented in consideration of only the vibration caused by the output of the audio file by the electronic device itself.
The electronic equipment can automatically acquire the volume level when executing a playing instruction and automatically set a corresponding response threshold value based on the volume level, when the playing instruction is acquired, if a default volume value is stored in the electronic equipment, the audio file is directly output by using the default volume value, the default volume value can be the volume value when the electronic equipment outputs the audio file last time, and when the playing instruction is acquired at the time, if an instruction for adjusting the volume value is not acquired, the volume value when the audio file is output last time is directly used as the default volume value to output the audio file.
In the process of outputting the audio file, if the volume value is not adjusted, the audio file is always played by the default volume value until the induction parameter of the input operation is obtained, and when the induction parameter of the input operation is obtained, the current volume level is determined, namely when the input operation is determined to be obtained, the volume level of the audio file is output by the electronic equipment and is determined as the current volume level.
The input operation can be a flapping action, whether the sensing parameter of the flapping action is larger than a response threshold value or not is determined, if the sensing parameter of the flapping action is smaller than the response threshold value, the electronic equipment cannot sense the flapping action and cannot respond to the flapping action in the playing process of the audio file;
if the sensing parameter of the tapping motion is greater than the response threshold, in the playing process of the audio file, the electronic device can sense the tapping motion and respond to the tapping motion, and respond to a first operation instruction of the tapping motion, wherein the first operation instruction is an instruction for stopping/closing the playing of the audio file.
In the process of playing the audio file, if the tapping action is used for indicating a first operation instruction, when responding to the tapping action, the first operation instruction is executed, namely, the playing of the audio file is stopped/closed.
And playing the audio file indicated by the playing instruction based on the current volume level, and dynamically adjusting the response threshold of the flapping action if the current volume level of the electronic equipment is changed. That is, if the volume level changes, the value of the response threshold changes accordingly, so that different volume levels have different response thresholds.
Such as: in the process of playing the audio file, the current volume level is a first volume level, a response threshold corresponding to the current volume level is a first threshold, and at the moment, when the induction parameter of the input operation is greater than the first threshold, a first operation instruction of a flapping action is responded, and the playing of the audio file is stopped/closed; and dynamically adjusting the volume level to be a second volume level in the playing process, wherein the response threshold at the moment is a second threshold, and when the induction parameter of the input operation is greater than the second threshold, the first operation instruction of the input operation is responded, and the playing of the audio file is stopped/closed.
Further, the electronic device may be an intelligent alarm clock, which not only rings at one time or rings at a predetermined time, but also plays music when the time is not a prompt, such as: the designated music is played at any time according to the instruction of the user.
When the intelligent alarm clock prompts that the current preset time is reached, the intelligent alarm clock can only prompt through sound, namely only ring, at the moment, if the playing of the ring is to be stopped/closed, the electronic equipment needs to be tapped, and the response threshold value for tapping the electronic equipment needs to be larger than the induction value corresponding to the current volume level, so that the intelligent alarm clock can be prevented from responding to the vibration caused by the ring and stopping/closing the playing of the ring;
if the intelligent alarm clock is prompting that the preset time is reached currently, the intelligent alarm clock can prompt in a sound and vibration mode, the sound of the intelligent alarm clock can enable the intelligent alarm clock to sense the vibration, after the vibration of the electronic equipment and the vibration generated by the playing sound of the electronic equipment are overlapped, the vibration sensing value of the electronic equipment can be larger, therefore, the response threshold value of the beating action needs to be adjusted, the response threshold value is larger than the vibration of the electronic equipment and the vibration sensing value generated by the playing sound of the electronic equipment after the vibration is overlapped, the ringing and the vibration sensing value of the alarm clock can be larger than the response threshold value corresponding to the current vibration, the electronic equipment cannot be triggered to respond, and the playing of the ringing and the vibration is stopped/closed.
If the vibration of the intelligent alarm clock is preset when prompting that the current preset time is reached, obtaining a preset vibration induction value, determining a response threshold value of a flapping action based on the vibration induction value and the current volume level, then ringing and vibrating when the intelligent alarm clock prompts that the current preset time is reached, and then stopping/closing the ringing and the vibrating, wherein the induction parameter of the action of flapping the electronic equipment required by playing the ringing needs to be greater than the response threshold value of the flapping action determined based on the vibration induction value and the current volume level;
in addition, if the vibration intensity of the vibration prompt of the intelligent alarm clock when the prompt reaches the preset time is not preset, the vibration intensity is related to the current volume level, namely, different volume levels correspond to different vibration prompt intensities. Then, the current volume level needs to be determined first, then the sensing value of the vibration prompt is determined based on the current volume level, the response threshold of the flapping action is determined based on the sensing value of the vibration prompt and the current volume level, then when the intelligent alarm clock prompt reaches the preset moment currently, the intelligent alarm clock both rings and vibrates, and then the sensing parameter of the flapping electronic equipment required for stopping/closing the playing of the ring needs to be larger than the response threshold of the flapping action determined based on the sensing value of the vibration prompt and the current volume level.
In the information processing method disclosed in this embodiment, the current volume level is obtained, the response threshold of the tapping motion is set as the first threshold based on the current volume level, and the response threshold is higher than the sensing value corresponding to the vibration generated by playing the audio file at the current volume level, where different volume levels correspond to different thresholds. According to the scheme, the corresponding response threshold value of the flapping action is set based on the current volume level, and the response threshold value is higher than the induction value corresponding to vibration generated when the audio file is played at the current volume level, so that different response threshold values are set at different volume levels, and therefore the false triggering caused by the influence of vibration generated when the response threshold value of the flapping action is influenced by sound output of the electronic equipment is avoided. Or/and false triggering caused by the influence of vibration generated by ambient sound.
The present embodiment discloses an information processing method, a flowchart of which is shown in fig. 3, and the method includes:
step S31, obtaining a playing instruction, and playing the audio file indicated by the playing instruction based on the current volume level;
step S32, setting a response threshold of the flapping action as a first threshold based on the current volume level, wherein the response threshold is higher than an induction value corresponding to vibration generated by playing an audio file at the current volume level, and different volume levels correspond to different thresholds;
step S33, obtaining induction parameters of input operation;
step S34, if the sensing parameter is larger than the response threshold, responding to a first operation instruction of the flapping action, wherein the first operation instruction is used for stopping/closing the playing of the audio file;
step S35, if the playing of the audio file is closed, the response threshold for resuming the tapping action is the initial threshold.
And in the process of playing the audio file by the electronic equipment, responding to the beating action to stop/close the playing of the audio file if the sensing parameter of the input operation is detected to be larger than the response threshold value under the current volume level.
After the playing of the audio file is stopped/closed, since the electronic device does not currently output the audio file, that is, the electronic device does not make a sound, at this time, the electronic device senses that the response threshold of the tapping motion is reduced, and the response threshold of the tapping motion does not need to be matched with the volume level when the audio file is played, therefore, after the playing of the audio file is stopped/closed, the response threshold of the tapping motion needs to be adjusted to be recovered to the initial threshold.
Wherein, the initial threshold may be: the threshold value when the electronic device does not output the audio file may be: the electronic device defaults to a response threshold for the tapping motion.
After the playing of the audio file is closed, if the input operation is acquired, at this time, the induction parameter of the input operation only needs to be larger than the initial threshold, and when the induction parameter of the input operation is larger than the initial threshold, a second operation instruction of the flapping action is responded, wherein the second operation instruction is different from the first operation instruction.
The second operation instruction may be to start/resume playing of the audio file after the playing of the audio file is closed, or may also be to: displaying the control menu; or, returning to the main interface; or: the lighting of the light of the electronic equipment is controlled, and the like, which is different from a first operation instruction for stopping/closing the playing of the audio file in the playing process of the audio file.
If the second operation instruction is to start playing of the audio file, when a response is made to the second operation instruction, the response threshold of the flapping action corresponding to the second operation instruction is an initial threshold, the audio file is played in response to the second operation instruction, at this time, the sound level of the played audio file is the sound level of the audio file played last time, or the sound level is set to be default, the audio file is played based on the second operation instruction, and in the playing process, the response threshold of the flapping action is adjusted to correspond to the sound level of the audio file played, so that the electronic equipment is prevented from responding due to vibration generated by playing of the audio file.
In the information processing method disclosed in this embodiment, the current volume level is obtained, the response threshold of the tapping motion is set as the first threshold based on the current volume level, and the response threshold is higher than the sensing value corresponding to the vibration generated by playing the audio file at the current volume level, where different volume levels correspond to different thresholds. According to the scheme, the corresponding response threshold value of the flapping action is set based on the current volume level, and the response threshold value is higher than the induction value corresponding to vibration generated when the audio file is played at the current volume level, so that different response threshold values are set at different volume levels, and therefore the false triggering caused by the influence of vibration generated when the response threshold value of the flapping action is influenced by sound output of the electronic equipment is avoided. Or/and false triggering caused by the influence of vibration generated by ambient sound.
The present embodiment discloses an information processing method, a flowchart of which is shown in fig. 4, and includes:
step S41, obtaining the current volume level;
step S42, obtaining parameter information for representing the material of a placing surface for placing the electronic equipment;
step S43, determining different response thresholds corresponding to different volume levels corresponding to the material of the placement surface based on the parameter information, where the response thresholds are higher than the sensing values corresponding to vibrations generated by playing the audio file at the current volume level under the material of the placement surface of the current electronic device.
The electronic equipment is placed on the placing surfaces made of different materials to play audio files, the sensing values of the vibration which can be sensed by the electronic equipment are different, therefore, the electronic equipment is placed on the placing surfaces made of different materials to play the audio files, and the corresponding response threshold values of the flapping actions are different.
Obtaining parameter information for characterizing a material of a placing surface on which the electronic device is placed may be: the method comprises the following steps of storing relevant information of different placing surface materials in advance, wherein the relevant information of a plurality of placing surface materials at least comprises the following steps: when the electronic equipment is placed on the placing surfaces made of different materials, the sensing values of vibration sensed by the electronic equipment due to audio playing when the audio file is played according to different volume levels and the corresponding response threshold values are respectively obtained.
For example: the method comprises the following steps of storing a plurality of tables in advance, wherein each table comprises a placing surface material, different tables correspond to different placing surface materials, the table also comprises a response threshold corresponding to each volume level under the placing surface material, and the table also comprises: and drawing the parameters in the table correspondingly according to the induction value of the vibration sensed due to the playing of the audio corresponding to each volume level under the material of the placing surface.
Wherein, the placing surface material can be: glass material, metal material, wood board material, carpet material and the like.
Under the same volume level, when the electronic equipment is placed on a hard material placing surface such as glass and metal to play an audio file, the sensing value of vibration sensed by the electronic equipment due to sound playing is small, the response threshold value of corresponding flapping actions is small, and when the electronic equipment is placed on a soft material placing surface such as a carpet to play the audio file, the sensing value of vibration sensed by the electronic equipment due to sound playing is large, and the response threshold value of corresponding flapping actions is large.
For example: the electronic equipment is placed on the first material placing surface, when the electronic equipment plays a first audio at a first volume level, the sensing value of vibration felt by the electronic equipment due to the playing of the first audio is a first sensing value, and the response threshold value of the flapping action corresponding to the first sensing value is a first response threshold value; the electronic equipment is placed on the second material placing surface, when the electronic equipment plays the first audio at the first volume level, the sensing value of the vibration sensed by the electronic equipment due to the playing of the first audio is the second sensing value, and the response threshold value of the flapping action corresponding to the second sensing value is the second response threshold value.
The pre-stored parameter information of the material of the placing surface is that the corresponding relation between the sensing value sensed by the electronic equipment due to the playing of the audio file and the response threshold value of the flapping action when the electronic equipment plays the audio file at different volume levels under various materials of the placing surface is pre-stored. In practical application, the current volume level is obtained, the electronic device plays audio, at this time, the sensing value of vibration sensed by the device due to audio playing can be determined, and the parameter information of the pre-stored material of the placing surface is searched based on the sensing value determined at this time, so that the current material of the placing surface and the corresponding response threshold value are determined. Having determined the response threshold, it may be determined that, among the tapping actions performed on the electronic device, a tapping action having a sensing value that reaches the response threshold is responded, while a vibration having a sensing value that does not reach the response threshold is not responded.
Further, obtaining parameter information for characterizing a material of a placing surface on which the electronic device is placed, further includes: and if the placing position of the electronic equipment is changed, obtaining parameter information for representing the material of a placing surface for placing the electronic equipment.
When the placing position of the electronic equipment is changed, the material of the placing surface of the electronic equipment may be changed, at the moment, the audio file is played only under the determined volume level, so that whether the induction value is changed or not is determined, whether the material of the placing surface is changed or not can be determined, and meanwhile, whether the response threshold value is adjusted or not can be determined.
In addition, the parameter information for representing the material of the placing surface for placing the electronic device is obtained, and the parameter information may further be: the method comprises the steps of determining the material of a placing surface of the electronic equipment based on a sensor on the electronic equipment, namely detecting the material of the placing surface of the electronic equipment based on the sensor, so that the floating values of response thresholds of different volume levels under the material are determined through a pre-stored default response threshold, and the response threshold does not need to be determined through playing sound.
Specifically, a default response threshold is preset, and the default response threshold is not limited to a specific placing surface material, but a corresponding default response threshold may be adopted for different volume levels under any placing surface material.
If the response threshold value is to be adjusted based on the placing surface material pair, floating values are required to be set for different placing surface materials respectively, and the floating values are relative to the default response threshold value; for the same type of placing surface material, the placing surface material corresponds to different volume levels, and on the basis of a default response threshold value corresponding to the volume level, the placing surface material may correspond to different floating values.
Such as: determining a material of a placing surface, and then determining that when the electronic device is placed on the material of the placing surface, playing an audio file at a first volume level, wherein a corresponding first floating value is +5, and then a first response threshold corresponding to a flapping action of the electronic device at the material and the first volume level is: a sum of a first default response threshold and a first floating value; playing the audio file at a second volume level, wherein a corresponding second floating value is-10, and a second response threshold corresponding to the flapping actions of the electronic equipment at the second volume level and the material of the placing surface is as follows: the sum of the second default response threshold and the second float value.
Such as: corresponding to the first placing surface material, the third floating value of the first placing surface material under the first volume level is-5, and the third response threshold of the electronic equipment is the sum of the third default response threshold and the third floating value under the conditions of the first placing surface material and the first volume level; and if the fourth floating value of the second placing surface material at the first volume level is +10, the fourth response threshold of the electronic device at the second placing surface material and the first volume level is the sum of the fourth default response threshold and the fourth floating value. In addition, the following may be also possible: confirm the face material of placing of electronic equipment through the sensor, it is specific: the method comprises the steps of collecting a placing surface image of the electronic equipment through a camera on the electronic equipment, and analyzing the image so as to determine the material of the placing surface of the electronic equipment. Of course, the sensor may be other sensors, and is not limited in this respect.
Determining the change of the placement position of the electronic device may be: the method comprises the steps of determining that the electronic equipment moves through an acceleration sensor, starting a camera, collecting images, determining whether the position of the electronic equipment changes, if so, determining the current material of a placing surface of the electronic equipment based on the images, and re-determining a response threshold based on the re-determined material of the placing surface.
In the information processing method disclosed in this embodiment, the current volume level is obtained, the response threshold of the tapping motion is set as the first threshold based on the current volume level, and the response threshold is higher than the sensing value corresponding to the vibration generated by playing the audio file at the current volume level, where different volume levels correspond to different thresholds. According to the scheme, the corresponding response threshold value of the flapping action is set based on the current volume level, and the response threshold value is higher than the induction value corresponding to vibration generated when the audio file is played at the current volume level, so that different response threshold values are set at different volume levels, and therefore the false triggering caused by the influence of vibration generated when the response threshold value of the flapping action is influenced by sound output of the electronic equipment is avoided. Or/and false triggering caused by the influence of vibration generated by ambient sound.
The embodiment discloses an electronic device, a schematic structural diagram of which is shown in fig. 5, and the electronic device includes:
a processor 51 and a player 52.
The processor 51 is configured to obtain a current volume level, set a response threshold of the tapping motion as a first threshold based on the current volume level, where the response threshold is higher than a sensing value corresponding to vibration generated by playing a volume file at the current volume level, and different volume levels correspond to different thresholds;
the player 52 is used to play audio files.
Further, the electronic device further includes: the sensor is used for obtaining induction parameters of input operation;
the processor obtains a playing instruction, plays the audio file indicated by the playing instruction based on the current volume level, and is further used for obtaining a sensing parameter of an input operation, if the sensing parameter is larger than a response threshold, responding to a first operating instruction of the flapping action, wherein the first operating instruction is used for stopping/closing the playing of the audio file.
Further, the processor is further configured to: and if the playing of the audio file is closed, the response threshold value of the beating action is recovered to be an initial threshold value, wherein if the obtained induction parameter of the input operation is larger than the response threshold value, a second operation instruction of the beating action is responded, and the first operation instruction is different from the second operation instruction.
The processor plays the audio file indicated by the playing instruction based on the current volume level, and if the current volume level of the electronic equipment changes, the response threshold value of the flapping action is dynamically adjusted.
Further, the electronic device further includes: the storage is used for storing parameter information representing the material of a placing surface for placing the electronic equipment, and the processor determines different thresholds corresponding to different volume levels corresponding to the material of the placing surface based on the parameter information.
The processor obtains parameter information for representing the material of a placing surface for placing the electronic equipment, and the method further comprises the following steps: and if the placing position of the electronic equipment is changed, obtaining the parameter information of the material of the placing surface for representing the electronic equipment.
The electronic device disclosed in this embodiment is implemented based on the information processing method disclosed in the above embodiment, and details are not described here.
The electronic device disclosed in this embodiment obtains a current volume level, sets a response threshold of the tapping motion as a first threshold based on the current volume level, where the response threshold is higher than a sensing value corresponding to vibration generated by playing an audio file at the current volume level, and different volume levels correspond to different thresholds. According to the scheme, the corresponding response threshold value of the flapping action is set based on the current volume level, and the response threshold value is higher than the induction value corresponding to vibration generated when the audio file is played at the current volume level, so that different response threshold values are set at different volume levels, and therefore the false triggering caused by the influence of vibration generated when the response threshold value of the flapping action is influenced by sound output of the electronic equipment is avoided. Or/and false triggering caused by the influence of vibration generated by ambient sound.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. 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.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An information processing method comprising:
obtaining a current volume level;
setting a response threshold of a flapping action as a first threshold based on the current volume level, wherein the response threshold is higher than a sensing value corresponding to vibration generated when an audio file is played at the current volume level;
wherein different volume levels correspond to different thresholds.
2. The method of claim 1, wherein the obtaining a current volume level comprises:
obtaining a playing instruction;
playing the audio file indicated by the playing instruction based on the current volume level;
the method further comprises the following steps:
obtaining induction parameters of input operation;
and responding to a first operation instruction of the flapping action if the sensing parameter is larger than the response threshold, wherein the first operation instruction is used for stopping/closing the playing of the audio file.
3. The method of claim 2, further comprising:
if the playing of the audio file is closed, recovering the response threshold of the flapping action as an initial threshold;
and responding to a second operation instruction of the flapping action if the obtained sensing parameter of the input operation is larger than the response threshold, wherein the first operation instruction is different from the second operation instruction.
4. The method of claim 2, wherein the playing of the audio file indicated by the playing instructions is based on the current volume level, and the response threshold of the tapping action is dynamically adjusted if the current volume level of the electronic device changes.
5. The method of claim 2, further comprising:
obtaining parameter information for representing the material of a placing surface for placing the electronic equipment;
and determining different thresholds corresponding to different volume levels corresponding to the material of the placing surface based on the parameter information.
6. The method of claim 5, wherein the obtaining parameter information characterizing a material of a mounting surface on which the electronic device is mounted further comprises:
and if the placing position of the electronic equipment is changed, obtaining parameter information for representing the material of a placing surface for placing the electronic equipment.
7. An electronic device, comprising:
the processor is used for obtaining a current volume level, setting a response threshold of a flapping action as a first threshold based on the current volume level, wherein the response threshold is higher than an induction value corresponding to vibration generated by playing an audio file at the current volume level, and different volume levels correspond to different thresholds;
and the player is used for playing the audio file.
8. The apparatus of claim 7, further comprising:
the sensor is used for obtaining induction parameters of input operation;
the processor obtains a playing instruction, and plays an audio file indicated by the playing instruction based on the current volume level;
the processor is further configured to obtain a sensing parameter of an input operation, and respond to a first operation instruction of the tapping motion if the sensing parameter is greater than the response threshold, where the first operation instruction is used to suspend/close the playing of the audio file.
9. The apparatus of claim 8, wherein,
the processor is further configured to: and if the playing of the audio file is closed, recovering the response threshold of the flapping action as an initial threshold, wherein if the obtained sensing parameter of the input operation is greater than the response threshold, responding to a second operation instruction of the flapping action, and the first operation instruction is different from the second operation instruction.
10. The apparatus of claim 8, further comprising:
the storage is used for storing parameter information representing the material of a placing surface for placing the electronic equipment;
the processor determines different thresholds corresponding to different volume levels corresponding to the material of the placing surface based on the parameter information.
CN202011627594.0A 2020-12-31 2020-12-31 Information processing method and electronic equipment Active CN112817227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011627594.0A CN112817227B (en) 2020-12-31 2020-12-31 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011627594.0A CN112817227B (en) 2020-12-31 2020-12-31 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN112817227A true CN112817227A (en) 2021-05-18
CN112817227B CN112817227B (en) 2022-05-31

Family

ID=75856271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011627594.0A Active CN112817227B (en) 2020-12-31 2020-12-31 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112817227B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147217A1 (en) * 2006-12-13 2008-06-19 Ensky Technology (Shenzhen) Co., Ltd. Motion responsive portable media player
CN102281484A (en) * 2010-04-07 2011-12-14 索尼公司 Audio signal processing apparatus, audio signal processing method, and program
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
CN102646019A (en) * 2012-02-24 2012-08-22 康佳集团股份有限公司 Input method of device and device thereof
CN103635867A (en) * 2011-06-03 2014-03-12 苹果公司 Creating custom vibration patterns in response to user input
CN103885594A (en) * 2013-10-12 2014-06-25 合肥联宝信息技术有限公司 Method and device for operating mobile terminal by detecting vibration and vibration detection equipment
CN105487788A (en) * 2016-01-20 2016-04-13 广东欧珀移动通信有限公司 Real-time music information acquisition method and device
CN105721676A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Terminal processing method and terminal processing device
CN105744056A (en) * 2016-01-20 2016-07-06 广东欧珀移动通信有限公司 Volume adjusting method and volume adjusting device
CN109658952A (en) * 2018-12-13 2019-04-19 歌尔科技有限公司 A kind of acoustic signal processing method, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147217A1 (en) * 2006-12-13 2008-06-19 Ensky Technology (Shenzhen) Co., Ltd. Motion responsive portable media player
CN102281484A (en) * 2010-04-07 2011-12-14 索尼公司 Audio signal processing apparatus, audio signal processing method, and program
CN103635867A (en) * 2011-06-03 2014-03-12 苹果公司 Creating custom vibration patterns in response to user input
CN102436345A (en) * 2011-10-31 2012-05-02 广州市动景计算机科技有限公司 Method for interface operation and control of mobile device and implement device
CN102646019A (en) * 2012-02-24 2012-08-22 康佳集团股份有限公司 Input method of device and device thereof
CN103885594A (en) * 2013-10-12 2014-06-25 合肥联宝信息技术有限公司 Method and device for operating mobile terminal by detecting vibration and vibration detection equipment
CN105487788A (en) * 2016-01-20 2016-04-13 广东欧珀移动通信有限公司 Real-time music information acquisition method and device
CN105721676A (en) * 2016-01-20 2016-06-29 广东欧珀移动通信有限公司 Terminal processing method and terminal processing device
CN105744056A (en) * 2016-01-20 2016-07-06 广东欧珀移动通信有限公司 Volume adjusting method and volume adjusting device
CN109658952A (en) * 2018-12-13 2019-04-19 歌尔科技有限公司 A kind of acoustic signal processing method, equipment and storage medium

Also Published As

Publication number Publication date
CN112817227B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
EP3386212B1 (en) Method for removing dust in sound outlet hole of loudspeaker
JP6129343B2 (en) RECORDING DEVICE AND RECORDING DEVICE CONTROL METHOD
WO2008075082A1 (en) Mobile device and method of operation thereof
GB2445436A (en) Mobile device which can sense its present situation
JP6562695B2 (en) Dynamic change of haptic effect
CN106971704B (en) Audio processing method and mobile terminal
CN103631375B (en) According to the method and apparatus of the Situation Awareness control oscillation intensity in electronic equipment
CN110931048B (en) Voice endpoint detection method, device, computer equipment and storage medium
CN109600463A (en) A kind of mobile terminal
CN110004659B (en) Laundry treating apparatus and control method thereof
JP2006255072A (en) Program, information storage medium and game system
US10978031B2 (en) Sound signal generation device, sound signal generation method and non-transitory computer readable medium storing sound signal generation program
CN112817227B (en) Information processing method and electronic equipment
JP2014175776A (en) Portable terminal device, method for controlling portable terminal device, and program for controlling portable terminal device
CN113542963B (en) Sound mode control method, device, electronic equipment and storage medium
KR102580521B1 (en) Electronic apparatus and method of adjusting sound volume thereof
JP2010166274A (en) Information processing apparatus
CN105852810A (en) Sleep control method
CN109121068A (en) Sound effect control method, apparatus and electronic equipment
CN108337367B (en) Musical instrument playing method and device based on mobile terminal
JP2021018551A (en) Information apparatus, automatic setting method, and automatic setting program
CN107808655B (en) Audio signal processing method, audio signal processing device, electronic equipment and storage medium
CN113641243B (en) Interactive gesture recognition method and system of wearable device and wearable device
KR100462607B1 (en) Apparatus and method for managing undo/redo
JP2005168763A (en) Program, information storage medium and game system

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