Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vikramezhil committed Aug 25, 2017
2 parents 8e4a253 + e45e327 commit bfd200c
Showing 1 changed file with 94 additions and 1 deletion.
95 changes: 94 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,95 @@
# DroidSpeech
Android library for continuous speech recognition
Android library for continuous speech recognition.

<b>Supports from Android SDK version 16 and above</b>.

<b><h1>About</h1></b>
Google's default speech recognition library doesn't allow to continuously listen to users voice and a manual stop and start mechanism is involved to use the speech recognition again. This proved to be a downfall for third party developers to optimise the user experience of having continuous speech recognition after each speech result. Adding to this the speech recognition server throws up an error when called upon frequently thus preventing an error free experience to the end user.

<b>Droid Speech</b> aims to close this gap and provide unparalleled optimisation of continuous speech recognition without any of the above said issues. It is developed keeping in mind all the loopholes which needs to be blocked to have the speech recognition run seamlessly in an android device.

<b><h1>Usage</h1></b>
<b>Gradle dependency:</b>

Add the following to your project level build.gradle:

```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

Add this to your app build.gradle:

```
dependencies {
compile 'com.github.vikramezhil:DroidSpeech:1.0.0'
}
```

<b>Maven:</b>

Add the following to the <repositories> section of your pom.xml:

```
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```

Add the following to the <dependencies> section of your pom.xml:

```
<dependency>
<groupId>com.github.vikramezhil</groupId>
<artifactId>DroidSpeech</artifactId>
<version>1.0.0</version>
</dependency>
```

<b><h1>Documentation</h1></b>

For a detailed documentation 📔, please have a look at the [Wiki](https://github.com/vikramezhil/DroidSpeech/wiki).

In your activity, initialize the droid speech class and set the droid speech listener

```
DroidSpeech droidSpeech = new DroidSpeech(this, null);
droidSpeech.setOnDroidSpeechListener(this);
```
To start droid speech to listen to user voice call the method <i>startDroidSpeechRecognition()</i>,

```
droidSpeech.startDroidSpeechRecognition();
```
To close droid speech operations call the method <i>closeDroidSpeechOperations()</i>,

```
droidSpeech.closeDroidSpeechOperations();
```

The speech result will be triggered at <i>onDroidSpeechFinalResult</i>,

```
@Override
public void onDroidSpeechFinalResult(String finalSpeechResult, boolean droidSpeechWillListen)
{
// Do whatever you want with the speech result
}
```

<b><h1>License</h1></b>

Copyright 2017 Vikram Ezhil

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

0 comments on commit bfd200c

Please sign in to comment.