<commit_before>[![Code Climate](https://codeclimate.com/github/gavinlaking/playa.png)](https://codeclimate.com/github/gavinlaking/playa)

# Playa

Plays mp3s from a directory using Ruby. An example app using Vedeu ( https://github.com/gavinlaking/vedeu ).

![Exciting Screenshot](https://raw.github.com/gavinlaking/playa/master/screenshot.png)


## Requirements

- Portaudio >= 19
- Mpg123 >= 1.14


### OSX Dependency Installation

    brew install portaudio
    brew install mpg123

### Debian / Ubuntu Dependency Installation

    apt-get install libjack0 libjack-dev
    apt-get install libportaudiocpp0 portaudio19-dev libmpg123-dev

#### Gem Installation

    gem install playa

or

    sudo gem install playa


## Usage

Play all .mp3 files in the current working directory:

    playa

or, specify a directory to play from:
<commit_msg>Add 'sudo' for dependency installation.<commit_after>[![Code Climate](https://codeclimate.com/github/gavinlaking/playa.png)](https://codeclimate.com/github/gavinlaking/playa)

# Playa

Plays mp3s from a directory using Ruby. An example app using Vedeu ( https://github.com/gavinlaking/vedeu ).

![Exciting Screenshot](https://raw.github.com/gavinlaking/playa/master/screenshot.png)


## Requirements

- Portaudio >= 19
- Mpg123 >= 1.14


### OSX Dependency Installation

    brew install portaudio
    brew install mpg123

### Debian / Ubuntu Dependency Installation

    sudo apt-get install libjack0 libjack-dev
    sudo apt-get install libportaudiocpp0 portaudio19-dev libmpg123-dev

#### Gem Installation

    gem install playa

or

    sudo gem install playa


## Usage

Play all .mp3 files in the current working directory:

    playa

or, specify a directory to play from:

{'fraction_non_alphanumeric': 0.09918793503480279, 'fraction_numerical': 0.02320185614849188, 'mean_word_length': 3.8728813559322033, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1609173', 'n_tokens_mistral': 620, 'n_tokens_neox': 544, 'n_words': 152}