Acoustic Data Telecommunication Library. This repository is for Javascript.
<script src='https://cdn.jsdelivr.net/gh/euphony-io/euphony.js/dist/euphony.min.js'></script>
<!-- if you want to use module version of euphony, import this like below.
<script type='module'>
import {Euphony} from "https://cdn.jsdelivr.net/gh/euphony-io/euphony.js/dist/euphony.m.min.js";
</script>
-->
var euphony = new Euphony();
euphony.setCode("hello, euphony");
euphony.play();
// if you want to stop sound
euphony.stop();
If you use conda
, you can get them with::
conda install -c conda-forge nodejs
If you use Homebrew on Mac OS X::
brew install node
Installation on Linux may vary, but be aware that the nodejs
or npm
packages
included in the system package repository may be too old to work properly.
You can also use the installer from the Node.js website.
cd euphony.js
npm install
When doing development, you can use this command to run local server.
Check demo: https://localhost:8080/demo
Check test: https://localhost:8080/test
npm run dev
Changes and improvements are more than welcome! Feel Free to fork and open a pull request. Please make your changes in a specific branch and request to pull into master
.
Euphony is licensed under the Apache 2.0 license. (https://github.com/designe/euphony.js/blob/master/LICENSE)