1. Technical Field
The present disclosure relates to electronic devices and, particularly, to an electronic device and a method thereof for noise alerting by solving problems of noise.
2. Description of Related Art
When the volume of the noise is too high, it is harmful to human hearing. However, it is difficult to accurately determine if the noise level reaches a harmful level only by human hearing.
Therefore, it is necessary to provide an electronic device and a method for noise alerting.
Many aspects of the present disclosure should be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Referring to
The collecting unit 110 is configured to record ambient sound around the electronic device 100 and generate corresponding sound signals. The volume unit 120 is configured to determine a volume of the ambient sound according to the sound signals. The first storing unit 130 is configured to store a first table mapping relationships between a plurality of volumes and noise grades. The comparing unit 140 is configured to obtain the noise grade corresponding to the determined volume of the ambient sound in the first table.
The second storing unit 150 is configured to store a second table mapping relationships between the noise grades and solutions. The solutions are used to alert the user to take appropriate countermeasures to reduce the risk of harm to the user from excessively loud noise in time. The solutions associated with the various noise grades, may alert users to take steps such as to insert earplugs, or turn down or off the electronic device 100, and so on. As shown in
The calling unit 160 is configured to search the second table in the second storing unit 150 to obtain the solution corresponding to the obtained noise grade of the ambient sound. The outputting unit 170 is configured to output the alert to the user recommending the obtained solution. The outputting method applied in the outputting unit 170 may be, for example, lights flashing, a visual alert on a display, audible signals emitted from a speaker, or any combination thereof.
In step S201, the collecting unit 110 records the ambient sound around the electronic device 100 and generates the corresponding sound signals. In step S203, the volume unit 120 determines the volume of the ambient sound according to the sound signals.
In step S205, the comparing unit 140 searches the first table stored in the first storing unit 130 to obtain the noise grade corresponding to the determined volume of the ambient sound. In step S207, the calling unit 160 searches the second table stored in the second storing unit 150 to obtain the solution corresponding to the obtained noise grade of the ambient sound. In step S209, the outputting unit 170 outputs the obtained solution by lights flashing, a visual alert on a display, audible signals emitted from a speaker, or any combination thereof.
It will be understood that the above particular embodiments and methods are shown and described by way of illustration only. The principles and the features of the present disclosure may be employed in various and numerous embodiment thereof without departing from the scope of the disclosure as claimed. The above-described embodiments illustrate the scope of the disclosure but do not restrict the scope of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200910312009.5 | Dec 2009 | CN | national |