Acoustic Data Telecommunication Library. This is for Android version.
Euphony provides a handiness library designed to communicate with other devices(android and web) using mic and recorder.
Official Facebook Page : https://www.facebook.com/euphonyproject
Official Library Site : https://dev.jbear.co/euphony
- build.gradle in app module
dependencies {
implementation 'euphony.lib:euphony:0.7.1.6'
}
- AndroidManifest.xml
<uses-permission android:name="android.permission.RECORD_AUDIO" />
in Transmitter
EuTxManager mTxManager = new EuTxManager();
mTxManager.euInitTransmit("Hello, Euphony"); // To generate acoustic data "Hello, Euphony"
mTxManager.process(-1); // generate sound infinite.
in Receiver
EuRxManager mRxManager = new EuRxManager();
mRxManager.setAcousticSensor(new AcousticSensor() {
@Override
public void notify(String letters) {
//when data is received
}
});
mRxManager.listen(); //Listening Start
// if you want to finish listening, call the finish();
// mRxManager.finish();
Web version is also available now. but only transmitter version. [Web version.] (https://github.com/designe/euphony.js)
- Euphony Listener : Euphony Demo to recognize sound data.
- Euphony Speaker : Euphony Demo to generate sound data.
Changes are 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/blob/master/LICENSE)