Euphony provides a handiness library designed to communicate with other devices(android and web) using mic and recorder.
Official Facebook Page : [http://www.facebook.com/euphonyproject] (http://www.facebook.com/euphonyproject)
in Transmitter
mContext = MainActivity.this;
EuTxManager mTxManager = new EuTxManager(mContext);
mTxManager.euInitTransmit("Hello, Euphony", 5); // To generate acoustic data "Hello, Euphony" for 5 times.
mTxManager.setSoftVolume(95.0); //To set software volume
mTxManager.process();
in Receiver
EuRxManager mRxManager = new EuRxManager();
mRxManager.Listen(); //Listening Start
mRxManager.Finish(); //Listening End
mRxManager.setAcousticSensor(new AcousticSensor() {
@override
public void notify(String letters) {
//when data is received
}
});
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 [MIT license.] (https://github.com/designe/Euphony/blob/master/LICENSE.txt)