<commit_before># SmartLight

## Installation requirements (Linux)

The following packages are only needed to install PyAudio. After PyAudio is
installed, they can be removed. PyAudio is needed to use the microphone for
speech recognition.

    sudo apt-get install portaudio19-dev python3-all-dev

## Requirements
 - Opencv2 for face detection ([Windows](http://bfy.tw/9v3O), [Linux](https://github.com/jayrambhia/Install-OpenCV))
 - Python 3 (non anaconda)
 - packages in requirements.txt (run `pip3 install -r requirements.txt`)


## Testing
To test the installation of the speech recognition, run:

    python3 -m speech_recognition<commit_msg>updated readme with a link to OpenFace<commit_after># SmartLight

## Installation requirements (Linux)

The following packages are only needed to install PyAudio. After PyAudio is
installed, they can be removed. PyAudio is needed to use the microphone for
speech recognition.

    sudo apt-get install portaudio19-dev python3-all-dev

## Requirements
 - Opencv2 for face detection ([Windows](http://bfy.tw/9v3O), [Linux](https://github.com/jayrambhia/Install-OpenCV))
 - Python 3 (non anaconda)
 - packages in requirements.txt (run `pip3 install -r requirements.txt`)
 - [OpenFace](https://github.com/cmusatyalab/openface). There are a lot of other requirements that need to be satisfied before installing OpenFace, so be aware of that

## Testing
To test the installation of the speech recognition, run:

    python3 -m speech_recognition
{'fraction_non_alphanumeric': 0.08681022880215343, 'fraction_numerical': 0.012113055181695828, 'mean_word_length': 4.548507462686567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '5228324', 'n_tokens_mistral': 444, 'n_tokens_neox': 411, 'n_words': 164}