{'fraction_non_alphanumeric': 0.009473684210526316, 'fraction_numerical': 0.0, 'mean_word_length': 5.425675675675675, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Alarm detecting method and computer device thereof

An alarm detecting method applied on a computer device is disclosed in the present invention. The method includes utilizing a G-sensor of the computer device to detect a variation of gravity acceleration, transmitting an actuating signal to a controller by the G-sensor according to the variation of the gravity acceleration, the controller reading the actuating signal and determining whether the variation of the gravity acceleration is substantially greater than a predetermined threshold value, the controller outputting a controlling signal to an audio codec when the variation of the gravity acceleration is substantially greater than the predetermined threshold value, and a speaker generating an alarm audio by the audio codec according to the controlling signal. The controller drives the speaker to generate the alarm audio when an operating system of the computer device has not started.