<commit_before># Audio Stream Example

A simple example that streams your mic input into the temporal pooler (TP), 
and outputs an anomaly score, based on how familiar the TP has become to that
particular mic input sequence. Think of it as being able to recognize a song,
or become more familiar with your speech pattern.

## Requirements

- [matplotlib](http://matplotlib.org/)
- [pyaudio](http://people.csail.mit.edu/hubert/pyaudio/)

## Usage

    python audiostream_tp.py

This script will run automatically & forever.
To stop it, use KeyboardInterrupt (CRTL+C).

## General algorithm:<commit_msg>Adding OS X to requirements of audiostream readme.<commit_after># Audio Stream Example

A simple example that streams your mic input into the temporal pooler (TP), 
and outputs an anomaly score, based on how familiar the TP has become to that
particular mic input sequence. Think of it as being able to recognize a song,
or become more familiar with your speech pattern.

## Requirements

- Mac OS X
- [matplotlib](http://matplotlib.org/)
- [pyaudio](http://people.csail.mit.edu/hubert/pyaudio/)

## Usage

    python audiostream_tp.py

This script will run automatically & forever.
To stop it, use KeyboardInterrupt (CRTL+C).

## General algorithm:
{'fraction_non_alphanumeric': 0.0816, 'fraction_numerical': 0.0, 'mean_word_length': 4.346153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2737431', 'n_tokens_mistral': 359, 'n_tokens_neox': 342, 'n_words': 157}