euphony-listener
version 1.0.0 🌏 ( English, 한국어 )
Introduction
'Euphony-Listener' receives and recognizes data through sound waves from 'Speaker'.
The frequency occurs when the speaker sends data. The Listen button is pressed, 'Listener' recognizes the data and you can check the results.
It only works on android.
Euphony Library
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
Prerequisite
build.gradle in app module
dependencies {
implementation 'euphony.lib:euphony:0.7.1.6'
}
AndroidManifest.xml
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Quick Start
1. Repository clone
$ git clone https://github.com/euphony-io/euphony-listener.git
2. Open in Android Studio
Find the path of the cloned project and open it.
Press the 'Trust Project' button.
3. JDK settings
JDK location error may occur when opening the file for the first time.
Click 'Change JDK location' to specify Gradle JDK.
When you reopen the project, the build starts.
4. Connect the device
By default, there is no device.
It is automatically recognized when devices with developer mode are connected.
5. Test
Operate 'euphony-listener' app on the connected device.
Speaker
Speaker demo is available at here. Enter short text and press the 'broadcast' button.
Listener
When the 'LISTEN' button is pressed, recognition begins.
Log
Euphony Listener is very easy to use
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();
Contributing
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.
License
Euphony is licensed under the Apache 2.0 license. (https://github.com/euphony-io/euphony-listener/blob/master/LICENSE)