CN104967932B - Earphone uses based reminding method and device, intelligent terminal - Google Patents
Earphone uses based reminding method and device, intelligent terminal Download PDFInfo
- Publication number
- CN104967932B CN104967932B CN201510253926.6A CN201510253926A CN104967932B CN 104967932 B CN104967932 B CN 104967932B CN 201510253926 A CN201510253926 A CN 201510253926A CN 104967932 B CN104967932 B CN 104967932B
- Authority
- CN
- China
- Prior art keywords
- time
- frequency band
- earphone
- audio
- playing
- 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
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000010365 information processing Effects 0.000 claims description 13
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 10
- 238000012360 testing method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000006378 damage Effects 0.000 description 3
- 210000005069 ears Anatomy 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 210000000056 organ Anatomy 0.000 description 2
- 206010011878 Deafness Diseases 0.000 description 1
- 208000028389 Nerve injury Diseases 0.000 description 1
- 208000009205 Tinnitus Diseases 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000000860 cochlear nerve Anatomy 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000010370 hearing loss Effects 0.000 description 1
- 231100000888 hearing loss Toxicity 0.000 description 1
- 208000016354 hearing loss disease Diseases 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008764 nerve damage Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 208000019116 sleep disease Diseases 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 231100000886 tinnitus Toxicity 0.000 description 1
Landscapes
- Telephone Function (AREA)
Abstract
Disclosure earphone uses based reminding method and device, intelligent terminal, and wherein method includes:It obtains the frequency range reproduction time for each tonal range that the audio file played includes and plays the volume of the audio file;According to the frequency range reproduction time and volume, the earphone usage time that the audio file is played with target frequency bands one of in the volume and each tonal range is calculated, also by obtaining time threshold corresponding with the volume and target frequency bands in preset time threshold library;When the earphone usage time is greater than or equal to the time threshold, reminds and terminate earphone use.The disclosure improves earphone and uses the accuracy reminded.
Description
Technical Field
The present disclosure relates to network technologies, and in particular, to a method and an apparatus for reminding use of an earphone, and an intelligent terminal.
Background
Many users like wearing the earphones when using the intelligent device to listen to music, and do not pay attention to the playing time, and actually, the longer the time of using the earphones is, the more fatigued the ears are easily, the more serious the damage to the hearing is, and it is necessary to develop a good earphone using habit in order to keep the hearing healthy.
Disclosure of Invention
The disclosure provides a method and a device for reminding use of an earphone and an intelligent terminal, so as to improve the accuracy of reminding use of the earphone.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for reminding use of an earphone, where the method is performed by an intelligent terminal, and the intelligent terminal outputs an audio file played by an audio player through the earphone; the method comprises the following steps:
acquiring frequency band playing time of each audio frequency band included in a played audio file and volume for playing the audio file;
according to the frequency band playing time and the volume, calculating the use time of an earphone for playing the audio file by the volume and one target frequency band in each audio frequency band, and acquiring a time threshold corresponding to the volume and the target frequency band from a preset time threshold library;
and when the earphone use time is larger than or equal to the time threshold, reminding to terminate the earphone use.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for earphone usage reminding, the method being performed by an audio player for playing an audio file; the method comprises the following steps:
according to the indication of the intelligent terminal, counting the frequency band playing time of each audio frequency band in the played audio file;
and sending the frequency band playing time to the intelligent terminal so that the intelligent terminal can remind the user of the earphone according to the frequency band playing time.
According to a third aspect of the embodiments of the present disclosure, there is provided an earphone use reminding device, where the earphone use reminding device is used in an intelligent terminal, and the intelligent terminal outputs an audio file played by an audio player through an earphone; the earphone use reminding device comprises:
the information acquisition module is used for acquiring frequency band playing time of each audio frequency band included in a played audio file and volume of the played audio file;
the information processing module is used for calculating the volume and the earphone service time of playing the audio file in one target frequency band of all the audio frequency bands according to the frequency band playing time and the volume acquired by the information acquisition module, and acquiring a time threshold corresponding to the volume and the target frequency band from a preset time threshold library;
and the earphone prompting module is used for reminding the earphone to be stopped when the information processing module determines that the using time of the earphone is greater than or equal to the time threshold.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a headset use reminding device for an audio player, the headset use reminding device comprising:
the information counting module is used for counting the frequency band playing time of each audio frequency band in the played audio file according to the indication of the intelligent terminal;
and the information sending module is used for sending the frequency band playing time to the intelligent terminal so that the intelligent terminal can remind the user of the earphone according to the frequency band playing time.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an intelligent terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: acquiring frequency band playing time of each audio frequency band included in a played audio file and volume for playing the audio file; according to the frequency band playing time and the volume, calculating the use time of an earphone for playing the audio file by the volume and one target frequency band in each audio frequency band, and acquiring a time threshold corresponding to the volume and the target frequency band from a preset time threshold library; and when the earphone use time is larger than or equal to the time threshold, reminding to terminate the earphone use.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: by comparing the using time of the earphone with the time threshold corresponding to the volume and the audio frequency band, the influence of the frequency band playing time and the volume of the audio frequency band on the ear fatigue is comprehensively considered, the time estimation for influencing the ear fatigue by the using time of the earphone can be more accurate, and the accuracy of using reminding of the earphone is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a block diagram illustrating an intelligent terminal according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of headset use alert in accordance with an exemplary embodiment;
FIG. 3 is a diagram illustrating a headset use alert interface according to an exemplary embodiment;
FIG. 4 is a flow chart illustrating a headset use alert in accordance with an exemplary embodiment;
FIG. 5 is a diagram illustrating a headset use alert interface according to an exemplary embodiment;
FIG. 6 is a flow chart illustrating a headset use alert in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating an earphone use reminder apparatus according to an exemplary embodiment;
FIG. 8 is a block diagram illustrating a headset use alert device in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating an earphone use reminder apparatus in accordance with an exemplary embodiment;
fig. 10 is a block diagram illustrating an intelligent terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The earphone use reminding method can be applied to reminding a user who uses the earphone to listen to the audio file, and prevents ear fatigue and hearing damage caused by long-time use of the earphone.
As shown in fig. 1, an audio player 12 may be installed on a smart terminal 11, the smart terminal 11 may be, for example, a portable terminal device such as a smart phone or a tablet, and the audio player 12 may be, for example, audio playing software carried by the smart terminal itself, or audio playing software installed by downloading (the smart terminal 11 may be generally installed with an operating system). Audio files played by the audio player 12, including but not limited to music, lecture audio, etc. files that can be heard over headphones; the sound of the audio file during playing is output through the earphone 13, and the user can listen to the sound by wearing the earphone 13. The mode of connecting the earphone to the intelligent terminal may be a wired connection (for example, an earphone plug type earphone is inserted into an earphone jack of the terminal), or may also be a wireless connection (for example, a bluetooth earphone is connected through a bluetooth protocol).
According to the earphone use reminding method, the earphone use reminding device 14 is further arranged in the intelligent terminal 11, the earphone use reminding device can be arranged in an operating system of the intelligent terminal, for example, the intelligent mobile phone can use an Android or Ios system, the earphone use reminding device 14 can be arranged in the system (of course, the audio player 12 is also arranged in the operating system), and the earphone use reminding method can be achieved through the cooperation between the earphone use reminding device 14 and the audio player 12.
Fig. 2 illustrates a flow of a method for reminding the use of the earphone according to an exemplary embodiment, which may be performed by the earphone use reminding device 14, as shown in fig. 2, and may include:
201. and acquiring the frequency band playing time of each audio frequency band in the played audio file and the volume for playing the audio file.
202. And calculating the use time of the earphone for playing the audio file by using the volume and one target frequency band in each audio frequency band according to the frequency band playing time and the volume, and acquiring a time threshold corresponding to the volume and the target frequency band from a preset time threshold library.
203. And when the earphone use time is larger than or equal to the time threshold, reminding to terminate the earphone use.
In 201, the earphone usage reminding device 14 in the intelligent terminal acquires the frequency band playing time of each audio frequency band included in the played audio file. For example, the audio frequency band may include "low frequency: 30-150 hz; intermediate frequency: 150-5 Khz; high frequency: 5K-20Khz ", which may include a plurality of audio frequency bands in an audio file, for example, when a song is played using a smart phone, the sound of the song is suppressed, and the three frequency bands include the low frequency band, the intermediate frequency band and the high frequency band.
The frequency band playing time of each audio frequency band included in the audio file is, that is, how long each frequency band is played when the audio file is played. For example, a song is played for 3 minutes, wherein the low frequency band takes half a minute, the mid frequency band takes 1 minute, and the high frequency band takes 1 minute and half a minute. The information of the occupied time of each frequency band may be obtained by analyzing an audio file, for example, when the music player 12 is to play a song, a file of the song generally needs to be obtained first, which may be referred to as an audio file, where the audio file includes information for limiting how to play the song, where the information includes frequency band information of the song (for example, when the frequency band is played according to 150hz at 1 minute and 20 seconds), and therefore, the occupied time of each frequency band may be counted according to the audio file.
In addition, it should be noted that, the frequency band playing time of the audio file acquired in 201 may be an audio file in a period of time. For example, still taking playing a song as an example, the statistical audio file may be one song, but if it is found through statistics that the time threshold has not been reached yet, the user may listen to the song next, and when the second song is played, the statistical audio file is counted again, and at this time, the statistical audio file includes the first song and the second song, and the total frequency band playing time of each audio frequency band is obtained within the time of ending the playing of the second song.
In an example, the manner of acquiring the frequency band playing time by the earphone usage reminding device 14 may be that, when detecting that the earphone is connected and the audio player is started, the device may instruct the audio player to count the frequency band playing time of each audio frequency band in the played audio file, and send the frequency band playing time to the device after the audio player counts. This way, the audio player performs the statistical work of the frequency band playing time, and the statistics is performed again when receiving the indication of the earphone use reminding device 14, so that compared with the way that the audio player always performs the statistics during playing, the processing resource can be saved.
The manner in which the earphone uses the reminding device 14 to detect the connection of the earphone can be a conventional manner, for example, taking the insertion of an earphone into an earphone hole as an example, when the earphone is inserted and pulled out, the level of the input/output port in the mobile phone corresponding to the earphone hole changes, and an event of the level change can be monitored through a monitoring function, so as to know whether the earphone is inserted or not. In addition, since the audio player runs in the operating system, the headset usage alert device 14 in the system can detect the activation of the player.
In another example, the way for the earphone usage reminding device 14 to obtain the playing time of the frequency band may be that the device itself obtains the playing time of the frequency band. For example, when detecting that the earphone is connected and the audio player is started, the earphone usage reminding device 14 obtains an audio file played by the audio player, and analyzes the audio file to obtain the frequency band playing time of each audio frequency band, in the same manner as above, for example, statistics is performed according to frequency band information included in the audio file and used for limiting how songs are played.
In 201, the earphone usage reminding device 14 further obtains the volume of the played audio file, which only needs to be obtained by the module in the intelligent terminal system responsible for controlling the volume of the audio file. After obtaining the two information of the frequency band playing time and the volume, in 202, the earphone using time can be calculated according to the two information, so as to judge whether the ear is tired or not, and whether the user needs to be reminded to stop using the earphone or not.
It should be noted that the "usage time of the earphone" described herein is not the playing time of the audio player. How this time is calculated and how this is determined will be described in detail below. First, a database file is required to be preset, and some time thresholds, which may be called a time threshold library, may be stored in the database file, and are used to indicate how long the ears are tired and need to rest when the audio file is listened to by using the earphones.
In order to obtain the time threshold values in the time threshold value library, some test individuals (who may be persons who participate in the test) can be selected, the operation of listening to the audio file by using the earphones of the test individuals is simulated, and the indexes of the ear organs of the test individuals when the test individuals listen to the audio file by using the special medical instrument equipment are tested, so that the time for fatigue of the ear organs of the test individuals is recorded according to the indexes. During testing, for each volume level (for example, a general smartphone includes 16 volume levels), low-frequency, medium-frequency, and high-frequency audio files may be played respectively, so as to obtain a plurality of time thresholds, where each time threshold corresponds to a combination of "volume + frequency band" and is used to indicate that, when audio is played in the corresponding "volume + frequency band", an ear is fatigued after listening to a time length corresponding to the time threshold. Table 1 below illustrates the time thresholds for different frequency bands at two volume levels:
TABLE 1 time threshold library (examples section)
Referring to table 1, only a part of information is illustrated, and the time threshold library may further include time thresholds in different frequency bands corresponding to other levels of sound volume. After the information is obtained, the information may be stored in a storage space of the smart terminal, for example, a certain folder of the smart phone, and recorded in a time threshold file of the folder.
It is assumed that the audio player has finished playing a plurality of songs and transmits the band playing time of each audio frequency band included in the songs to the earphone usage reminding device 14 of the intelligent terminal (for example, before reaching a time threshold, the player may be defaulted to count all the time and send updated statistics to the terminal system when each song is finished), and it is assumed that the band playing time of each audio frequency band is "low frequency time: 30 minutes; high-frequency time: 30 minutes; intermediate frequency time: 1 hour "and assume that the volume at which the song is played is level 10. And at the moment, the earphone service time is calculated according to the frequency band playing time and the volume:
if the time of each frequency band in the frequency band playing time is viewed singly, and the time thresholds of each frequency band corresponding to the level 10 volume in the table 1 are compared, it can be seen that the time of each frequency band is within the threshold: (low frequency time: 30 minutes) <1 hour (level 10 volume + threshold for low frequency), (high frequency time: 30 minutes) <1 hour (level 10 volume + threshold for high frequency), (mid frequency time: 1 hour) <2 hours (level 10 volume + threshold for mid frequency). However, in 202, the embodiment of the present disclosure performs time conversion to uniformly convert the time into one of the target frequency bands in the audio frequency bands, where the target frequency band takes an intermediate frequency as an example:
first, the time threshold values in different frequency bands corresponding to the volume of the played audio file are obtained from the time threshold library, in the above example, the time threshold value "low frequency" corresponding to the volume of level 10 is obtained from table 1: 1 hour; high frequency: 1 hour; intermediate frequency: 2 hours "and from this the proportional relationship between the time thresholds of the different frequency bands at that volume is obtained. For example, the low frequency time (1 hour) corresponds to 1/2 of the medium frequency time (2 hours), that is, the audio file is listened at the volume of level 10, the fatigue time length of the low frequency hearing is half of the fatigue time length of the medium frequency hearing, and similarly, the high frequency time is also half of the medium frequency.
Then, according to the calculated proportional relationship, the band playing time of each audio frequency band is converted into the time corresponding to the target frequency band, i.e. the intermediate frequency, in the above example, "low frequency time: 30 minutes; high-frequency time: 30 minutes; intermediate frequency time: 1 hour "," low frequency time: 30 minutes "after conversion corresponds to a medium frequency time of 1 hour," high frequency time: 30 minutes "after the conversion also corresponds to a medium frequency time of 1 hour. Finally, the converted time of each corresponding target frequency band is added, the obtained intermediate frequency time is 3 hours (the time is the using time of the earphone), and the 3 hours is more than 2 hours (the level 10 volume and the threshold value corresponding to the intermediate frequency), so that the condition that the ears are tired and need to rest can be determined.
It should be noted that, the above is an example of uniformly converting the frequency band playing time of each frequency band into the time corresponding to the intermediate frequency, and actually, the frequency band playing time may also be converted into a low frequency or a high frequency, and the principle is the same as above. Therefore, it can be seen that the earphone using time of the embodiment of the present disclosure is the time after the conversion calculation, and the time corresponds to a volume level and a target frequency band, so that the time threshold corresponding to the volume level and the target frequency band can be obtained from the time threshold library for comparison, and when the earphone using time is greater than or equal to the time threshold, it is determined that the ear is tired at this time.
In 203, the earphone usage reminding device may remind the user to terminate the earphone usage when the determined time threshold is reached, for example, as illustrated in fig. 3, a message prompt box "suggest a certain time for the ear to rest" may be popped up, so that the user may timely know that the ear is tired, timely stop using the earphone to let the ear rest, and prevent the damage such as noise hearing loss, tinnitus, and auditory nerve injury. In addition, the prompt box is popped up in the embodiment of the disclosure, so that the influence of factors of ear hearing fatigue is comprehensively analyzed according to information such as volume, audio frequency band and the like, the judgment on the ear fatigue time is more accurate, and the earphone can be reminded of stopping using more timely.
Besides the above message prompting method, the user may be prompted in other manners, such as vibration, voice prompt (e.g. playing voice "suggest to have the ear rest for a certain time", or ringing), etc.
Fig. 4 is a flow chart of the earphone usage reminding according to another exemplary embodiment, as shown in fig. 4, steps 401 to 403 of which can be described in the above embodiments, when it is determined that the earphone usage time is greater than or equal to the time threshold, the earphone usage reminding apparatus can further execute 404 to instruct the audio player to pause playing the audio file. It should be noted that the execution sequence of 404 is not limited in this embodiment, for example, when the earphone usage reminding device determines that the earphone usage time is greater than or equal to the time threshold, two aspects of processing for reminding to terminate earphone usage and instructing the player to pause playing may be executed simultaneously, or the two aspects of processing may be different in time slightly in sequence.
In 405, the earphone usage reminding device may determine whether an indication of the user's confirmation to continue is received, for example, as shown in fig. 5, when reminding the user, a message prompt box "suggest to have a certain time for the ear" may be displayed, and a button for the user to select may be displayed, including "confirm" and "continue". If the user selects 'confirm', indicating that the user wants to have a rest, the intelligent terminal can directly quit the audio player; if the user selects "continue," indicating that the user wants to continue listening to the song, then the headset usage reminder may execute 406, instructing the audio player to continue playing. The method can effectively solve the problem that a user who has a habit of listening to music before sleeping cannot pause the playing due to sleeping, and if the user forgets to turn off the player after sleeping, the player automatically pauses after a period of time, so that the power consumption of the intelligent terminal is saved.
If the user selects "continue", the audio player continues playing, and the earphone usage reminding device may be set to remind the user once every other time (for example, 10 minutes) thereafter, such as a prompt box may still pop up; or, when the prompt box is popped up, an option of 'no more reminder' can be added, if the user selects 'no more reminder', the earphone reminding device can no longer remind the user, and whether the time threshold is reached by calculation and analysis is not calculated, the device can also indicate that the audio player does not transmit the counted frequency band playing time.
In yet another example, consider that people of different ages listen to audio files using headphones for different times of ear fatigue, even at the same volume and frequency band. For example, also playing an audio file with a level 10 volume and low frequency, the time threshold for younger people is 1 hour, and for older people may be half an hour. Therefore, when the special medical instrument is used for testing, test individuals of different ages can be selected for testing respectively, and time thresholds corresponding to different ages are obtained through big data sample analysis and statistics, for example, for the ages of 20-26, the time thresholds of different audio frequency bands at the volume of level 10 are shown in table 1.
Correspondingly, the intelligent terminal needs to obtain age information of a user listening to the audio file, and an exemplary way of obtaining the age information may be that the intelligent terminal may display an interface input box (filling in the age of the user) or a selection box (selecting the age of the user) for the user to input the age of the user, for example, the input box may be popped up when the audio player is started for the first time, and then the earphone usage reminding device of the terminal may store the age information. For example, if the age of the user is 23 years, the earphone usage reminding device may obtain the time threshold corresponding to the volume and frequency band of level 10 from the age range corresponding to the age information (for example, the age range of 20-26, i.e. table 1 above) in the time threshold library.
Fig. 6 illustrates a method for reminding the use of earphones by an audio player, which may include:
601. according to the indication of the intelligent terminal, counting the frequency band playing time of each audio frequency band in the played audio file;
602. and sending the frequency band playing time to the intelligent terminal so that the intelligent terminal can remind the user of the earphone according to the frequency band playing time.
In 601, the smart terminal may instruct the player to count the frequency band playing time when detecting that the earphone is connected and the audio player is started. In 602, the player may send the counted frequency band playing time to the intelligent terminal, and actually transmit the frequency band playing time to the earphone use reminding device in the intelligent terminal, and the device may determine whether to remind the earphone use according to the information transmitted by the player, and the specific principle may be combined with the above-mentioned embodiment, and detailed description is omitted. For example, the audio player may send the frequency band playing time of the audio file to the intelligent terminal when the audio file playing is finished each time, so as to timely determine whether the use of the earphone reaches the fatigue time.
Fig. 7 illustrates an earphone use reminding device for an intelligent terminal, which outputs an audio file played by an audio player through an earphone; as shown in fig. 7, the earphone usage reminding device may include: an information acquisition module 71, an information processing module 72 and an earphone prompt module 73; wherein,
the information obtaining module 71 is configured to obtain frequency band playing time of each audio frequency band included in a played audio file, and volume of playing the audio file;
an information processing module 72, configured to calculate, according to the frequency band playing time and the volume obtained by the information obtaining module, an earphone using time for playing the audio file in the volume and one target frequency band in each audio frequency band, and further obtain, from a preset time threshold library, a time threshold corresponding to the volume and the target frequency band;
and the earphone prompting module 73 is used for prompting the earphone to be terminated when the information processing module determines that the earphone use time is greater than or equal to the time threshold.
Further, the information obtaining module 71 is further configured to obtain age information of a user listening to the audio file; the information processing module 72 is further configured to obtain the time threshold from the age group of the time threshold library corresponding to the age information; the time threshold library comprises time thresholds corresponding to different age groups, and the time threshold of each age group comprises time thresholds corresponding to different volumes and target frequency bands.
As shown in fig. 8, the information acquisition module 71 may include at least one of:
a first obtaining unit 711, configured to instruct the audio player to count frequency band playing time of each audio frequency band in the played audio file when detecting that an earphone is connected and the audio player is started; and receiving the frequency band playing time returned by the audio player.
A second obtaining unit 712, configured to obtain an audio file played by the audio player when detecting that the earphone is connected and the audio player is started, and analyze the audio file to obtain a frequency band playing time of each audio frequency band.
The information processing module 72 may include: a ratio acquisition unit 721 and a time conversion unit 722;
a proportion obtaining unit 721, configured to obtain time thresholds in different frequency bands corresponding to the volume from the time threshold library, and obtain a proportion relationship between the time thresholds in the different frequency bands at the volume according to the time thresholds in the different frequency bands;
and the time conversion unit 722 is configured to convert the frequency band playing time of each audio frequency band included in the acquired audio file into a time corresponding to the target frequency band according to the proportional relationship, and add the converted times corresponding to the target frequency bands to obtain the earphone service time.
The apparatus may further include: a player control module 74, configured to instruct the audio player to pause playing the audio file when the information processing module 72 determines that the usage time of the earphone is greater than or equal to the time threshold; and when receiving the instruction of confirming the continuation of the user, instructing the audio player to continue playing.
Fig. 9 illustrates a headset use reminder device for an audio player, which may include: an information statistics module 91 and an information sending module 92.
The information counting module 91 is configured to count frequency band playing time of each audio frequency band in a played audio file according to an instruction of the intelligent terminal;
and the information sending module 92 is configured to send the frequency band playing time to the intelligent terminal, so that the intelligent terminal performs earphone use reminding according to the frequency band playing time.
Fig. 10 is a block diagram illustrating an intelligent terminal 1000 according to an example embodiment. For example, the apparatus 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, interface to input/output (I/O) 1012, sensor component 1014, and communication component 10110.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 1002 may include one or more processors 1020 to execute instructions to perform the methods described above: acquiring frequency band playing time of each audio frequency band included in a played audio file and volume for playing the audio file; according to the frequency band playing time and the volume, calculating the use time of an earphone for playing the audio file by the volume and one target frequency band in each audio frequency band, and acquiring a time threshold corresponding to the volume and the target frequency band from a preset time threshold library; and when the earphone use time is larger than or equal to the time threshold, reminding to terminate the earphone use. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operation at the device 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power component 1008 provides power to the various components of the device 1000. The power components 1008 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 10110. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of apparatus 1000, sensor assembly 1014 may also detect a change in position of apparatus 1000 or a component of apparatus 1000, the presence or absence of user contact with apparatus 1000, orientation or acceleration/deceleration of apparatus 1000, and a change in temperature of apparatus 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 10110 is configured to facilitate wired or wireless communication between the apparatus 1000 and other devices. The device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication section 10110 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 10110 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an apparatus to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (15)
1. The earphone use reminding method is characterized in that the method is executed by an intelligent terminal, and the intelligent terminal outputs an audio file played by an audio player through an earphone; the method comprises the following steps:
acquiring frequency band playing time of each audio frequency band included in a played audio file and volume for playing the audio file;
according to the frequency band playing time and the volume, calculating the use time of an earphone for playing the audio file by the volume and one target frequency band in each audio frequency band, and acquiring a time threshold corresponding to the volume and the target frequency band from a preset time threshold library;
when the earphone use time is larger than or equal to the time threshold, reminding to terminate the earphone use;
the calculating the usage time of the earphone playing the audio file in the volume and one target frequency band in each frequency band according to the frequency band playing time and the volume comprises the following steps:
acquiring time thresholds under different frequency bands corresponding to the volume from the time threshold library, and acquiring a proportional relation between the time thresholds under the different frequency bands at the volume according to the time thresholds under the different frequency bands;
and converting the frequency band playing time of each audio frequency band in the obtained audio file into time corresponding to the target frequency band according to the proportional relation, and adding the converted time corresponding to the target frequency band to obtain the service time of the earphone.
2. The method according to claim 1, wherein the obtaining of the band playing time of each audio band included in the played audio file comprises:
when detecting that an earphone is connected and the audio player is started, indicating the audio player to count the frequency band playing time of each audio frequency band in the played audio file;
and receiving the frequency band playing time returned by the audio player.
3. The method according to claim 1, wherein the obtaining of the band playing time of each audio band included in the played audio file comprises:
when detecting that the earphone is connected and the audio player is started, acquiring an audio file played by the audio player, and analyzing the audio file to obtain the frequency band playing time of each audio frequency band.
4. The method of claim 1, wherein the alerting to terminate headset use comprises: the earphone is reminded to stop using in a text, vibration or voice mode.
5. The method of claim 1, wherein when the headset usage time is greater than or equal to the time threshold, further comprising:
instructing the audio player to pause playing the audio file;
and when receiving an instruction of confirming the continuation of the user, instructing the audio player to continue playing.
6. The method according to any one of claims 1 to 5, wherein the time threshold library comprises time thresholds corresponding to different age groups, and the time threshold of each age group comprises time thresholds corresponding to different volumes and target frequency bands respectively; the method further comprises the following steps:
acquiring age information of a user listening to the audio file;
and acquiring the time threshold from the age group corresponding to the age information in the time threshold library.
7. A method for reminding usage of an earphone, wherein the method is executed by an audio player for playing an audio file; the method comprises the following steps:
according to the indication of the intelligent terminal, counting the frequency band playing time of each audio frequency band in the played audio file;
and sending the frequency band playing time to the intelligent terminal so that the intelligent terminal can remind the user of using the earphone according to the method of any one of claims 1 to 5.
8. The method according to claim 7, wherein the sending the segment playing time to the smart terminal includes: and when the audio file is played, sending the frequency band playing time of the audio file to an intelligent terminal.
9. The earphone use reminding device is used for an intelligent terminal, and the intelligent terminal outputs an audio file played by an audio player through an earphone; the earphone use reminding device comprises:
the information acquisition module is used for acquiring frequency band playing time of each audio frequency band included in a played audio file and volume of the played audio file;
the information processing module is used for calculating the volume and the earphone service time of playing the audio file in one target frequency band of all the audio frequency bands according to the frequency band playing time and the volume acquired by the information acquisition module, and acquiring a time threshold corresponding to the volume and the target frequency band from a preset time threshold library;
the earphone prompting module is used for reminding the user of stopping using the earphone when the information processing module determines that the using time of the earphone is greater than or equal to the time threshold;
the information processing module includes:
the proportion obtaining unit is used for obtaining time thresholds corresponding to the volume in different frequency bands from the time threshold library, and obtaining proportion relations among the time thresholds in the different frequency bands in the volume according to the time thresholds in the different frequency bands;
and the time conversion unit is used for converting the frequency band playing time of each audio frequency band in the acquired audio file into the time corresponding to the target frequency band according to the proportional relation, and adding the converted time corresponding to the target frequency band to obtain the service time of the earphone.
10. The apparatus of claim 9, wherein the information obtaining module comprises:
the first acquisition unit is used for indicating the audio player to count the frequency band playing time of each audio frequency band in the played audio file when the connection of an earphone is detected and the audio player is started; and receiving the frequency band playing time returned by the audio player.
11. The apparatus of claim 9, wherein the information obtaining module comprises:
and the second acquisition unit is used for acquiring the audio file played by the audio player when the connection of the earphone is detected and the audio player is started, and analyzing the audio file to obtain the frequency band playing time of each audio frequency band.
12. The apparatus of claim 9, further comprising:
the player control module is used for indicating the audio player to pause playing the audio file when the information processing module determines that the earphone using time is greater than or equal to the time threshold; and when receiving the instruction of confirming the continuation of the user, instructing the audio player to continue playing.
13. The apparatus according to any one of claims 9 to 12,
the information acquisition module is also used for acquiring age information of a user listening to the audio file;
the information processing module is further configured to obtain the time threshold from an age group of the time threshold library corresponding to the age information; the time threshold library comprises time thresholds corresponding to different age groups, and the time threshold of each age group comprises time thresholds corresponding to different volumes and target frequency bands.
14. An earphone usage alert device for an audio player, the earphone usage alert device comprising:
the information counting module is used for counting the frequency band playing time of each audio frequency band in the played audio file according to the indication of the intelligent terminal;
an information sending module, configured to send the frequency band playing time to the intelligent terminal, so that the intelligent terminal performs earphone usage reminding according to the apparatus of any one of claims 9 to 12.
15. An intelligent terminal, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: acquiring frequency band playing time of each audio frequency band included in a played audio file and volume for playing the audio file; according to the frequency band playing time and the volume, calculating the use time of an earphone for playing the audio file by the volume and one target frequency band in each audio frequency band, and acquiring a time threshold corresponding to the volume and the target frequency band from a preset time threshold library; when the earphone use time is larger than or equal to the time threshold, reminding to terminate the earphone use;
the calculating the usage time of the earphone playing the audio file in the volume and one target frequency band in each frequency band according to the frequency band playing time and the volume comprises the following steps:
acquiring time thresholds under different frequency bands corresponding to the volume from the time threshold library, and acquiring a proportional relation between the time thresholds under the different frequency bands at the volume according to the time thresholds under the different frequency bands;
and converting the frequency band playing time of each audio frequency band in the obtained audio file into time corresponding to the target frequency band according to the proportional relation, and adding the converted time corresponding to the target frequency band to obtain the service time of the earphone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510253926.6A CN104967932B (en) | 2015-05-18 | 2015-05-18 | Earphone uses based reminding method and device, intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510253926.6A CN104967932B (en) | 2015-05-18 | 2015-05-18 | Earphone uses based reminding method and device, intelligent terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104967932A CN104967932A (en) | 2015-10-07 |
CN104967932B true CN104967932B (en) | 2018-09-25 |
Family
ID=54221855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510253926.6A Active CN104967932B (en) | 2015-05-18 | 2015-05-18 | Earphone uses based reminding method and device, intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104967932B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9609449B1 (en) * | 2015-10-26 | 2017-03-28 | Microsoft Technology Licensing, Llc | Continuous sound pressure level monitoring |
CN106502618B (en) * | 2016-10-21 | 2020-10-13 | 深圳市冠旭电子股份有限公司 | Hearing protection method and device |
CN109068205A (en) * | 2018-06-05 | 2018-12-21 | 四川斐讯信息技术有限公司 | A method of it is controllable using the time using time controllable earphone and earphone |
CN108924687A (en) * | 2018-07-05 | 2018-11-30 | Oppo(重庆)智能科技有限公司 | A kind of volume setting method and equipment and computer storage medium |
CN109254754B (en) * | 2018-11-23 | 2021-07-13 | 歌尔科技有限公司 | Prompting method, prompting device, earphone and computer readable storage medium |
CN111385697B (en) * | 2020-03-25 | 2021-11-02 | 中国民航大学 | Bluetooth headset and method for reminding of hearing fatigue and ear injury risks for long time |
CN113225432A (en) * | 2021-03-25 | 2021-08-06 | 上海闻泰信息技术有限公司 | Earphone use prompting method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080254753A1 (en) * | 2007-04-13 | 2008-10-16 | Qualcomm Incorporated | Dynamic volume adjusting and band-shifting to compensate for hearing loss |
CN201977797U (en) * | 2011-01-04 | 2011-09-21 | 杜昕 | Hearing impairment degree indicator |
CN103458339A (en) * | 2012-06-01 | 2013-12-18 | 联想(北京)有限公司 | Audio output control method and electronic equipment |
-
2015
- 2015-05-18 CN CN201510253926.6A patent/CN104967932B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104967932A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104967932B (en) | Earphone uses based reminding method and device, intelligent terminal | |
CN106464751B (en) | A method of alarm is presented in the user into environment | |
US9402124B2 (en) | Method for controlling terminal device and the smart terminal device thereof | |
CN107493500B (en) | Multimedia resource playing method and device | |
US9756439B2 (en) | Method and devices for outputting an audio file | |
CN105138319B (en) | Event-prompting method and device | |
CN106454644B (en) | Audio playing method and device | |
CN104394137B (en) | A kind of method and device of prompting voice call | |
CN105338389A (en) | Method and apparatus for controlling intelligent television | |
CN108877837B (en) | Audio signal abnormality identification method, device and storage medium | |
CN104867506A (en) | Music automatic control method and device | |
CN109087650B (en) | Voice wake-up method and device | |
CN106406175B (en) | Door opening reminding method and device | |
CN105407368A (en) | Multimedia playing method, device and system | |
CN104835516A (en) | Music playing method and apparatus, and intelligent terminal | |
US20190141462A1 (en) | System and method for performing an audiometric test and calibrating a hearing aid | |
CN113825080A (en) | Self-checking and matching method and device for hearing aid | |
EP3125514A1 (en) | Method and device for state notification | |
WO2018058331A1 (en) | Method and apparatus for controlling volume | |
US20160142885A1 (en) | Voice call prompting method and device | |
CN109788367A (en) | A kind of information cuing method, device, electronic equipment and storage medium | |
CN109088920A (en) | Evaluation method, device, equipment and the storage medium of intelligent sound box | |
CN110809081A (en) | Method, system, storage medium and electronic device for detecting call fault | |
CN112118502B (en) | Earphone control method, device, equipment and storage medium | |
WO2023245390A1 (en) | Smart earphone control method and apparatus, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |