Skip to content

Latest commit

 

History

History
92 lines (78 loc) · 4.05 KB

README.md

File metadata and controls

92 lines (78 loc) · 4.05 KB

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

clone

2. Open in Android Studio

Find the path of the cloned project and open it.
open
Press the 'Trust Project' button.
trust

3. JDK settings

JDK location error may occur when opening the file for the first time.
set jdk-1
Click 'Change JDK location' to specify Gradle JDK.
set jdk-2
When you reopen the project, the build starts.
build

4. Connect the device

By default, there is no device.
no device
It is automatically recognized when devices with developer mode are connected.
yes device

5. Test

Operate 'euphony-listener' app on the connected device.
run
run-build

Speaker

Speaker demo is available at here. Enter short text and press the 'broadcast' button.
speaker

Listener

When the 'LISTEN' button is pressed, recognition begins.
device

Log

logcat

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)