<commit_before># can-you-hear-me
An app to predict and prevent hearing loss by measuring the output volume everyday. Over time, you can see how much the output volume level has increased (if at all.)

It cannot be used to provide any sort of medical diagonsis. It just records the data but makes no conclusions based on it.

## How it works

The app records your output audio for 5 seconds everyday (if you put it in your crontab), and uses ffmpeg to find the average decibel output. It then logs the output to a file, and doesn't rely on system volume indicators, since the source file could be louder/quieter. The recorded file is then destroyed immediately afterwards.

## Requirements
- ffmpeg

- timeout

- lame

- parec and pacmd

- an audio output device<commit_msg>Add crontab example<commit_after># can-you-hear-me
An app to predict and prevent hearing loss by measuring the output volume everyday. Over time, you can see how much the output volume level has increased (if at all.)

It cannot be used to provide any sort of medical diagonsis. It just records the data but makes no conclusions based on it.

Add this line to your crontab file to run the script every six hours everyday: `0 */6 * * * bash /path/to/can-you-hear-me.sh >/dev/null 2>&1`
## How it works

The app records your output audio for 5 seconds everyday (if you put it in your crontab), and uses ffmpeg to find the average decibel output. It then logs the output to a file, and doesn't rely on system volume indicators, since the source file could be louder/quieter. The recorded file is then destroyed immediately afterwards.

## Requirements
- ffmpeg

- timeout

- lame

- parec and pacmd

- an audio output device
{'fraction_non_alphanumeric': 0.05076741440377804, 'fraction_numerical': 0.0035419126328217238, 'mean_word_length': 3.884726224783862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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}}
{'dir': 'git-commits-cleaned', 'id': '2416689', 'n_tokens_mistral': 464, 'n_tokens_neox': 443, 'n_words': 274}