<commit_before># Setting up the image

We recommend using [the images](https://aiyprojects.withgoogle.com/voice) we
provide. Those images are based on [Raspbian](https://www.raspberrypi.org/downloads/raspbian/),
with a few customizations and are tested on the Raspberry Pi 3.

If you prefer to setup Raspbian yourself, install the project dependencies and
setup services:
``` shell
cd ~/voice-recognizer-raspi
scripts/install-deps.sh
scripts/install-services.sh
```

## Installing the Voice HAT driver and config

To use the Voice HAT, you'll need to upgrade your kernel to 4.9, then adjust the<commit_msg>Use sudo for install-services.sh<commit_after># Setting up the image

We recommend using [the images](https://aiyprojects.withgoogle.com/voice) we
provide. Those images are based on [Raspbian](https://www.raspberrypi.org/downloads/raspbian/),
with a few customizations and are tested on the Raspberry Pi 3.

If you prefer to setup Raspbian yourself, install the project dependencies and
setup services:
``` shell
cd ~/voice-recognizer-raspi
scripts/install-deps.sh
sudo scripts/install-services.sh
```

## Installing the Voice HAT driver and config

To use the Voice HAT, you'll need to upgrade your kernel to 4.9, then adjust the
{'fraction_non_alphanumeric': 0.08737864077669903, 'fraction_numerical': 0.0048543689320388345, 'mean_word_length': 4.862559241706161, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4345002', 'n_tokens_mistral': 373, 'n_tokens_neox': 354, 'n_words': 147}