An open API service indexing awesome lists of open source software.

https://github.com/artskydj/test-audio

:musical_score: A small collection of ogg, wav, and flac files, for testing!
https://github.com/artskydj/test-audio

Last synced: about 1 year ago
JSON representation

:musical_score: A small collection of ogg, wav, and flac files, for testing!

Awesome Lists containing this project

README

          

test-audio
==========

[![Build Status](https://travis-ci.org/ArtskydJ/test-audio.svg)](https://travis-ci.org/ArtskydJ/test-audio)

> A tiny collection of ogg, wav, flac, and mp3 files, for testing!

# example

```js
var testAudio = require('test-audio')()
console.log(testAudio)
```
```js
[ { name: '30047__corsica-s__drippy.flac',
bytes: 24686,
type: 'flac',
path: 'C:\\Users\\Michael\\Github\\test-audio\\audio\\30047__corsica-s__drippy.flac' },
{ name: '50775__smcameron__drips2.ogg',
bytes: 67338,
type: 'ogg',
path: 'C:\\Users\\Michael\\Github\\test-audio\\audio\\50775__smcameron__drips2.ogg' },
{ name: '75344__neotone__drip2.wav',
bytes: 36792,
type: 'wav',
path: 'C:\\Users\\Michael\\Github\\test-audio\\audio\\75344__neotone__drip2.wav' },
{ name: '8000__cfork__cf-fx-bloibb.mp3',
bytes: 23302,
type: 'mp3',
path: 'C:\\Users\\Michael\\Github\\test-audio\\audio\\8000__cfork__cf-fx-bloibb.mp3' },
flac: { name: '30047__corsica-s__drippy.flac', // Alias for element [0]
bytes: 24686,
type: 'flac',
path: 'C:\\Users\\Michael\\Github\\test-audio\\audio\\30047__corsica-s__drippy.flac' },
ogg: { name: '50775__smcameron__drips2.ogg', // Alias for element [1]
bytes: 67338,
type: 'ogg',
path: 'C:\\Users\\Michael\\Github\\test-audio\\audio\\50775__smcameron__drips2.ogg' },
wav: { name: '75344__neotone__drip2.wav', // Alias for element [2]
bytes: 36792,
type: 'wav',
path: 'C:\\Users\\Michael\\Github\\test-audio\\audio\\75344__neotone__drip2.wav' },
mp3: { name: '8000__cfork__cf-fx-bloibb.mp3', // Alias for element [3]
bytes: 23302,
type: 'mp3',
path: 'C:\\Users\\Michael\\Github\\test-audio\\audio\\8000__cfork__cf-fx-bloibb.mp3' } ]
```

# api

```js
var getTestAudio = require('test-audio')
```

# `var files = getTestAudio()`

`files` is an array of objects. Each object represents a test audio file, and has the following properties:

- `name` is the file name, e.g. `'test_4.wav'`
- `bytes` is the size of the file in bytes, e.g. `23868`
- `type` is the extension of the file, e.g. `'wav'`
- `path` is the absolute path of the file

There are also properties on the array, corresponding to the type. E.g. `files.mp3` is the same as `files[3]`.

# credits

The sound files and album image are public domain/licensed for commercial reuse.

- [cf_FD_bloibb.mp3](http://www.freesound.org/people/cfork/sounds/8000/)
- [drippy.flac](http://www.freesound.org/people/Corsica_S/sounds/30047/)
- [drips2.ogg](http://www.freesound.org/people/smcameron/sounds/50775/)
- [drip2.wav](http://www.freesound.org/people/Neotone/sounds/75344/)
- [album.jpg](http://orig15.deviantart.net/bece/f/2014/311/5/7/buster_s_adventures_4___scary_encounter_by_busterthefox-d85numc.jpg)

# install

With [npm](http://nodejs.org/download) do:

```
npm install test-audio
```

# license

[MIT](http://opensource.org/licenses/MIT)