0.1.1 • Published 8 years ago

morsejs-render-webaudio v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

morsejs-render-webaudio

npm version Build Status Inline docs

A plugin for morsejs to play translated messages as with WebAudio.

Installation

Dependency

npm install --save morsejs-render-webaudio

Testing

It is moderately difficult to write automated unit tests for a node.js project that utilizes WebAudio. Normally, I test automatically with PhantomJS. However, as of right now PhantomJS does not support video or audio APIs which is understandable since it is supposed to be a headless browser.

Usage

var morsejs = require("morsejs"),
    morsejsRenderWebAudio = require("morsejs-render-webaudio"),
    translatedMessage = morsejs.translate("hello");
    
morsejsRenderWebAudio.playMorse(new AudioContext(), translatedMessage);
0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago